diff options
author | Ben Burdette <bburdette@gmail.com> | 2020-05-15 07:00:36 -0600 |
---|---|---|
committer | Ben Burdette <bburdette@gmail.com> | 2020-05-15 07:00:36 -0600 |
commit | 92123c6c798682f3a7c1f19984dcd3a06ad6be92 (patch) | |
tree | 5b6330756020c4b7759b328eb1e4de4bd65db3a9 /src/nix | |
parent | 19694aa213961daa5cbe2263bfaca53dc068a40c (diff) | |
parent | 546b179d0a89e9f27a02e92004da0f8f08e5041a (diff) |
Merge remote-tracking branch 'upstream/master' into errors-phase-2
Diffstat (limited to 'src/nix')
-rw-r--r-- | src/nix/main.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/nix/main.cc b/src/nix/main.cc index 5cf09c4f0..ef301580a 100644 --- a/src/nix/main.cc +++ b/src/nix/main.cc @@ -167,12 +167,15 @@ void mainWrapped(int argc, char * * argv) args.parseCmdline(argvToStrings(argc, argv)); - settings.requireExperimentalFeature("nix-command"); - initPlugins(); if (!args.command) args.showHelpAndExit(); + if (args.command->first != "repl" + && args.command->first != "doctor" + && args.command->first != "upgrade-nix") + settings.requireExperimentalFeature("nix-command"); + Finally f([]() { stopProgressBar(); }); startProgressBar(args.printBuildLogs); |