mirror of
https://github.com/nushell/nushell
synced 2024-12-26 13:03:07 +00: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 |