diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2017-06-07T16·41+0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2017-06-07T16·41+0200 |
commit | 186571965dccf57d15b9f37c1cca92a57187b7b3 (patch) | |
tree | 79c38bc54d9a3e2bbd296a094ca988c13088fb09 /src/nix/main.cc | |
parent | aa952d5f0bc623a1584f2d589209f586e594c75f (diff) |
Don't show flags from config settings in "nix --help"
Diffstat (limited to 'src/nix/main.cc')
-rw-r--r-- | src/nix/main.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nix/main.cc b/src/nix/main.cc index ea6838cd76c9..88a602b84813 100644 --- a/src/nix/main.cc +++ b/src/nix/main.cc @@ -33,7 +33,9 @@ struct NixArgs : virtual MultiCommand, virtual MixCommonArgs mkFlag(0, "version", "show version information", std::bind(printVersion, programName)); - settings.convertToArgs(*this); + std::string cat = "config"; + settings.convertToArgs(*this, cat); + hiddenCategories.insert(cat); } void printFlags(std::ostream & out) override |