diff options
author | Shea Levy <shea@shealevy.com> | 2014-02-04T15·35-0500 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-02-07T17·03+0100 |
commit | e4058fab64d82ddb7723142c7c595e80eeba0f3e (patch) | |
tree | c217d8eca8b9685ffcb1510e02c59d251d8dcd13 | |
parent | 0c3e8a616e8e243ee45c78491fe86f50230d82b9 (diff) |
Rename --no-readonly-mode --read-write-mode
Signed-off-by: Shea Levy <shea@shealevy.com>
-rw-r--r-- | doc/manual/nix-instantiate.xml | 4 | ||||
-rw-r--r-- | src/nix-instantiate/nix-instantiate.cc | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/doc/manual/nix-instantiate.xml b/doc/manual/nix-instantiate.xml index 9488bb733833..a3d67debe66a 100644 --- a/doc/manual/nix-instantiate.xml +++ b/doc/manual/nix-instantiate.xml @@ -35,7 +35,7 @@ <arg choice='plain'> <option>--eval-only</option> <arg><option>--strict</option></arg> - <arg><option>--no-readonly-mode</option></arg> + <arg><option>--read-write-mode</option></arg> </arg> <arg choice='plain'><option>--find-file</option></arg> </group> @@ -141,7 +141,7 @@ policies.</para> </varlistentry> - <varlistentry><term><option>--no-readonly-mode</option></term> + <varlistentry><term><option>--read-write-mode</option></term> <listitem><para>When used with <option>--eval-only</option>, perform evaluation in read/write mode so nix language features diff --git a/src/nix-instantiate/nix-instantiate.cc b/src/nix-instantiate/nix-instantiate.cc index 1f4d1ffab8fb..6a93acf39602 100644 --- a/src/nix-instantiate/nix-instantiate.cc +++ b/src/nix-instantiate/nix-instantiate.cc @@ -107,7 +107,7 @@ void run(Strings args) settings.readOnlyMode = true; evalOnly = true; } - else if (arg == "--no-readonly-mode") { + else if (arg == "--read-write-mode") { settings.readOnlyMode = false; } else if (arg == "--parse-only") { |