mirror of
https://github.com/nushell/nushell.git
synced 2024-11-22 08:23:24 +01:00
d9a00a876b
# Description
Follow-up of #8940. As @bobhy pointed out, it makes sense for the
behaviour of flags to match the one for positional arguments, where
default values are of type `Option<Value>` instead of
`Option<Expression>`.
# User-Facing Changes
The same ones from the original PR:
- Flag default values will now be parsed as constants.
- If the default value is not a constant, a parser error is displayed.
# Tests + Formatting
A [new
test](
|
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
LICENSE |