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:
Eelco Dolstra 2014-02-19 16:46:33 +01:00
parent e1cf40fa95
commit a897b58373

View file

@ -139,6 +139,8 @@ void run(Strings args)
strict = true;
else if (arg == "--repair")
state.repair = true;
else if (arg == "--dry-run")
settings.readOnlyMode = true;
else if (arg[0] == '-')
throw UsageError(format("unknown flag `%1%'") % arg);
else