about summary refs log tree commit diff
path: root/src/nix-instantiate/nix-instantiate.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/nix-instantiate/nix-instantiate.cc')
-rw-r--r--src/nix-instantiate/nix-instantiate.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nix-instantiate/nix-instantiate.cc b/src/nix-instantiate/nix-instantiate.cc
index 94172869883d..762b52ae1da3 100644
--- a/src/nix-instantiate/nix-instantiate.cc
+++ b/src/nix-instantiate/nix-instantiate.cc
@@ -107,11 +107,11 @@ void run(Strings args)
             readStdin = true;
         else if (arg == "--expr" || arg == "-E")
             fromArgs = true;
-        else if (arg == "--eval-only")
+        else if (arg == "--eval" || arg == "--eval-only")
             evalOnly = true;
         else if (arg == "--read-write-mode")
             wantsReadWrite = true;
-        else if (arg == "--parse-only")
+        else if (arg == "--parse" || arg == "--parse-only")
             parseOnly = evalOnly = true;
         else if (arg == "--find-file")
             findFile = true;