hydra-eval-jobs: smaller visual improvements

This commit is contained in:
Jörg Thalheim 2021-03-14 23:29:49 +01:00
parent 034f780421
commit 0e1be9fdaf
No known key found for this signature in database
GPG key ID: B3F5D81B0C6967C4

View file

@ -41,13 +41,12 @@ struct MyArgs : MixEvalArgs, MixCommonArgs
.longName = "help", .longName = "help",
.description = "show usage information", .description = "show usage information",
.handler = {[&]() { .handler = {[&]() {
std::cout << "Usage:" << std::endl; printf("USAGE: hydra-eval-jobs [options] expr\n\n");
std::cout << " " << "hydra-eval-jobs [options] expr" << std::endl;
for (const auto & [name, flag] : longFlags) { for (const auto & [name, flag] : longFlags) {
if (hiddenCategories.count(flag->category)) { if (hiddenCategories.count(flag->category)) {
continue; continue;
} }
printf(" --%-20s %s\n", name.c_str(), flag->description.c_str()); printf(" --%-20s %s\n", name.c_str(), flag->description.c_str());
} }
}}, }},
}); });