From 86aab6e9a04874f368ca0534068ed9ca1d46ae59 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 24 Oct 2017 15:41:11 +0200 Subject: [PATCH] Add --store argument to legacy commands --- src/libmain/shared.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/libmain/shared.cc b/src/libmain/shared.cc index 9123a3d1a..0f599f388 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); }