diff options
Diffstat (limited to 'third_party/nix/src/libmain/common-args.cc')
-rw-r--r-- | third_party/nix/src/libmain/common-args.cc | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/third_party/nix/src/libmain/common-args.cc b/third_party/nix/src/libmain/common-args.cc index e4c7c6daf6a5..bbd73cc840fa 100644 --- a/third_party/nix/src/libmain/common-args.cc +++ b/third_party/nix/src/libmain/common-args.cc @@ -1,4 +1,5 @@ #include "common-args.hh" +#include <glog/logging.h> #include "globals.hh" namespace nix { @@ -6,24 +7,6 @@ namespace nix { MixCommonArgs::MixCommonArgs(const string& programName) : programName(programName) { mkFlag() - .longName("verbose") - .shortName('v') - .description("increase verbosity level") - .handler([]() { verbosity = (Verbosity)(verbosity + 1); }); - - mkFlag() - .longName("quiet") - .description("decrease verbosity level") - .handler([]() { - verbosity = - verbosity > lvlError ? (Verbosity)(verbosity - 1) : lvlError; - }); - - mkFlag().longName("debug").description("enable debug output").handler([]() { - verbosity = lvlDebug; - }); - - mkFlag() .longName("option") .labels({"name", "value"}) .description("set a Nix configuration option (overriding nix.conf)") @@ -32,7 +15,7 @@ MixCommonArgs::MixCommonArgs(const string& programName) try { globalConfig.set(ss[0], ss[1]); } catch (UsageError& e) { - warn(e.what()); + LOG(WARNING) << e.what(); } }); |