aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nix-env/main.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nix-env/main.cc b/src/nix-env/main.cc
index 829e2f4ae..a09021669 100644
--- a/src/nix-env/main.cc
+++ b/src/nix-env/main.cc
@@ -402,6 +402,8 @@ void run(Strings args)
op = opUninstall;
else if (arg == "--query" || arg == "-q")
op = opQuery;
+ else if (arg[0] == '-')
+ opFlags.push_back(arg);
else
opArgs.push_back(arg);