diff options
Diffstat (limited to 'third_party/nix/src/libmain/common-args.cc')
-rw-r--r-- | third_party/nix/src/libmain/common-args.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/third_party/nix/src/libmain/common-args.cc b/third_party/nix/src/libmain/common-args.cc index 0000605d454a..729e026f1990 100644 --- a/third_party/nix/src/libmain/common-args.cc +++ b/third_party/nix/src/libmain/common-args.cc @@ -9,6 +9,20 @@ namespace nix { MixCommonArgs::MixCommonArgs(const std::string& programName) : programName(programName) { mkFlag() + .longName("verbose") + .shortName('v') + .description("increase verbosity level") + .handler([]() { + FLAGS_stderrthreshold = google::GLOG_INFO; + FLAGS_v += 1; + }); + + mkFlag() + .longName("quiet") + .description("silence all log output") + .handler([]() { FLAGS_stderrthreshold = google::GLOG_FATAL; }); + + mkFlag() .longName("option") .labels({"name", "value"}) .description("set a Nix configuration option (overriding nix.conf)") |