mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 22:16:16 +02:00
nix-instantiate: Allow --dry-run as a synonym for --readonly-mode
--dry-run is more consistent with nix-env and nix-store.
This commit is contained in:
parent
e1cf40fa95
commit
a897b58373
1 changed files with 2 additions and 0 deletions
|
@ -139,6 +139,8 @@ void run(Strings args)
|
||||||
strict = true;
|
strict = true;
|
||||||
else if (arg == "--repair")
|
else if (arg == "--repair")
|
||||||
state.repair = true;
|
state.repair = true;
|
||||||
|
else if (arg == "--dry-run")
|
||||||
|
settings.readOnlyMode = true;
|
||||||
else if (arg[0] == '-')
|
else if (arg[0] == '-')
|
||||||
throw UsageError(format("unknown flag `%1%'") % arg);
|
throw UsageError(format("unknown flag `%1%'") % arg);
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue