about summary refs log tree commit diff
path: root/src/libmain
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-10-24T13·41+0200
committerEelco Dolstra <edolstra@gmail.com>2017-10-24T13·41+0200
commit86aab6e9a04874f368ca0534068ed9ca1d46ae59 (patch)
tree497931ece79c538633b688371010238f1657119e /src/libmain
parentd16fd2497374671c92cb877f9570d65783a77d99 (diff)
Add --store argument to legacy commands
Diffstat (limited to 'src/libmain')
-rw-r--r--src/libmain/shared.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libmain/shared.cc b/src/libmain/shared.cc
index 9123a3d1ae04..0f599f388585 100644
--- a/src/libmain/shared.cc
+++ b/src/libmain/shared.cc
@@ -198,6 +198,12 @@ LegacyArgs::LegacyArgs(const std::string & programName,
 
     mkFlag(0, "no-gc-warning", "disable warning about not using '--add-root'",
         &gcWarning, false);
+
+    mkFlag()
+        .longName("store")
+        .label("store-uri")
+        .description("URI of the Nix store to use")
+        .dest(&(std::string&) settings.storeUri);
 }