about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2003-12-02T10·21+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2003-12-02T10·21+0000
commit0c804c677543350a2f80206a4f47adc9b7d460e3 (patch)
tree4162d0aca1ff68d2e2408fbcf32edc64cc10dce7 /src
parenta3ca74a1c34d68c94fb3c723fb75f3f27f81e2a9 (diff)
* Regression fix: query flags (e.g., "-qsf") were broken.
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 829e2f4ae508..a09021669c6e 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);