From a897b583733aaf3ee7aa0efe495f9ea046567555 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 19 Feb 2014 16:46:33 +0100 Subject: nix-instantiate: Allow --dry-run as a synonym for --readonly-mode --dry-run is more consistent with nix-env and nix-store. --- src/nix-instantiate/nix-instantiate.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/nix-instantiate') diff --git a/src/nix-instantiate/nix-instantiate.cc b/src/nix-instantiate/nix-instantiate.cc index 762b52ae1da3..afd16b3a52bb 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 -- cgit 1.4.1