031d924116
Upstream change: https://github.com/NixOS/nix/pull/10701 Change-Id: Icf271df57ec529dd8c64667d1ef9f6dbf02d33d3
30 lines
712 B
Markdown
30 lines
712 B
Markdown
---
|
|
synopsis: Warn on unknown settings anywhere in the command line
|
|
prs: 10701
|
|
credits: [cole-h]
|
|
category: Improvements
|
|
---
|
|
|
|
All `nix` commands will now properly warn when an unknown option is specified anywhere in the command line.
|
|
|
|
Before:
|
|
|
|
```console
|
|
$ nix-instantiate --option foobar baz --expr '{}'
|
|
warning: unknown setting 'foobar'
|
|
$ nix-instantiate '{}' --option foobar baz --expr
|
|
$ nix eval --expr '{}' --option foobar baz
|
|
{ }
|
|
```
|
|
|
|
After:
|
|
|
|
```console
|
|
$ 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'
|
|
{ }
|
|
```
|