diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-05-28 12:55:24 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2020-05-28 12:55:24 +0200 |
commit | 17ca997fc6875071c7c0027b7a23c732c3ad02ee (patch) | |
tree | cf820d38955dee7cf33b36502f5b62b78b466a95 /src/nix | |
parent | c3eff22f46cc05ddae4f648413ab115edb817ef9 (diff) | |
parent | d2a537568a7ed3fa8bee63c4298b771a27fdad89 (diff) |
Merge remote-tracking branch 'origin/master' into flakes
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 fffdeab90..94fd33244 100644 --- a/src/nix/main.cc +++ b/src/nix/main.cc @@ -183,12 +183,15 @@ void mainWrapped(int argc, char * * argv) if (completions) return; - 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); |