Skip to content

Commit

Permalink
Rename --no-readonly-mode --read-write-mode
Browse files Browse the repository at this point in the history
Signed-off-by: Shea Levy <shea@shealevy.com>
  • Loading branch information
shlevy authored and edolstra committed Feb 7, 2014
1 parent 0c3e8a6 commit e4058fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions doc/manual/nix-instantiate.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/nix-instantiate/nix-instantiate.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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") {
Expand Down

1 comment on commit e4058fa

@nixos-discourse
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/where-can-one-find-more-info-on-the-motivation-s-behind-nix-instantiate-read-write-mode/14641/1

Please sign in to comment.