nix-super/doc/manual/rl-next/fix-silent-unknown-options.md
2024-05-29 20:51:32 +02:00

671 B

synopsis prs
Warn on unknown settings anywhere in the command line 10701

All nix commands will now properly warn when an unknown option is specified anywhere in the command line.

Before:

$ nix-instantiate --option foobar baz --expr '{}'
warning: unknown setting 'foobar'
$ nix-instantiate '{}' --option foobar baz --expr
$ nix eval --expr '{}' --option foobar baz
{ }

After:

$ nix-instantiate --option foobar baz --expr '{}'
warning: unknown setting 'foobar'
$ nix-instantiate '{}' --option foobar baz --expr
warning: unknown setting 'foobar'
$ nix eval --expr '{}' --option foobar baz
warning: unknown setting 'foobar'
{ }