diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2017-10-24T13·41+0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2017-10-24T13·41+0200 |
commit | 86aab6e9a04874f368ca0534068ed9ca1d46ae59 (patch) | |
tree | 497931ece79c538633b688371010238f1657119e /src/libmain/shared.cc | |
parent | d16fd2497374671c92cb877f9570d65783a77d99 (diff) |
Add --store argument to legacy commands
Diffstat (limited to 'src/libmain/shared.cc')
-rw-r--r-- | src/libmain/shared.cc | 6 |
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); } |