mirror of
https://github.com/nushell/nushell.git
synced 2024-11-25 01:43:47 +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](
|
||
---|---|---|
.. | ||
call_ext.rs | ||
column.rs | ||
documentation.rs | ||
env.rs | ||
eval.rs | ||
glob_from.rs | ||
lib.rs | ||
nu_variable.rs | ||
scope.rs |