diff options
-rw-r--r-- | src/nix-env/main.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nix-env/main.cc b/src/nix-env/main.cc index 829e2f4ae5..a09021669c 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); |