nix-eval-jobs: hide hidden flags in the --help

Right now there are no hidden flags so this does not matter, but this will
change very soon.

Change-Id: I6d65ce9c32170b6d4f4a691ff9f8806a6a6a6964
This commit is contained in:
Alois Wohlschlager
2025-10-16 15:22:54 +00:00
committed by alois31
parent a85115bd33
commit e36ac58f93
+1 -1
View File
@@ -19,7 +19,7 @@ MyArgs::MyArgs(nix::AsyncIoRoot & aio) : MixCommonArgs("nix-eval-jobs"), aio_(ai
.handler = {[&]() {
printf("USAGE: nix-eval-jobs [options] expr\n\n");
for (const auto &[name, flag] : longFlags) {
if (hiddenCategories.count(flag->category)) {
if (flag->hidden || hiddenCategories.count(flag->category)) {
continue;
}
std::cout << nix::fmt(" --%-20s %s\n", name, flag->description);