Add --store argument to legacy commands

This commit is contained in:
Eelco Dolstra 2017-10-24 15:41:11 +02:00
parent d16fd24973
commit 86aab6e9a0
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -198,6 +198,12 @@ LegacyArgs::LegacyArgs(const std::string & programName,
mkFlag(0, "no-gc-warning", "disable warning about not using '--add-root'", mkFlag(0, "no-gc-warning", "disable warning about not using '--add-root'",
&gcWarning, false); &gcWarning, false);
mkFlag()
.longName("store")
.label("store-uri")
.description("URI of the Nix store to use")
.dest(&(std::string&) settings.storeUri);
} }