diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-02-19 16:46:33 +0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-02-19 16:46:33 +0100 |
commit | a897b583733aaf3ee7aa0efe495f9ea046567555 (patch) | |
tree | 7e206e2b52652029cd88b7bb50f979b5d87a49e7 /src | |
parent | e1cf40fa9537162efe0dc19dcea9ae7d043fde66 (diff) | |
download | guix-a897b583733aaf3ee7aa0efe495f9ea046567555.tar.gz |
nix-instantiate: Allow --dry-run as a synonym for --readonly-mode
--dry-run is more consistent with nix-env and nix-store.
Diffstat (limited to 'src')
-rw-r--r-- | src/nix-instantiate/nix-instantiate.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nix-instantiate/nix-instantiate.cc b/src/nix-instantiate/nix-instantiate.cc index 762b52ae1d..afd16b3a52 100644 --- a/src/nix-instantiate/nix-instantiate.cc +++ b/src/nix-instantiate/nix-instantiate.cc @@ -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 |