diff options
author | Théophane Hufschmitt <7226587+thufschmitt@users.noreply.github.com> | 2023-09-22 14:13:51 +0200 |
---|---|---|
committer | eldritch horrors <pennae@lix.systems> | 2024-03-04 04:35:54 +0100 |
commit | 68ba44c518f81e1a9d14679bb0147923af509a4b (patch) | |
tree | 51df5d0025da51fe9648e29495b233a633e83ef1 /src | |
parent | afb55f36df5e65007cb30798242ceb402f0572a4 (diff) |
Merge pull request #8931 from fricklerhandwerk/nix3-config-options
do not show configuration override flags for each command
(cherry picked from commit f89b84919c1a5c796512c50311821e7779b3678b)
Change-Id: Ib98b739bd6c9a1e94f94a78a47d84d72e435e7c0
Diffstat (limited to 'src')
-rw-r--r-- | src/libutil/args.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libutil/args.cc b/src/libutil/args.cc index 00281ce6f..8db293762 100644 --- a/src/libutil/args.cc +++ b/src/libutil/args.cc @@ -236,6 +236,7 @@ nlohmann::json Args::toJSON() for (auto & [name, flag] : longFlags) { auto j = nlohmann::json::object(); + if (hiddenCategories.count(flag->category)) continue; if (flag->aliases.count(name)) continue; if (flag->shortName) j["shortName"] = std::string(1, flag->shortName); |