mirror of
https://github.com/NixOS/nix
synced 2025-06-29 23:13:14 +02:00
Group common options
This commit is contained in:
parent
807d963ee8
commit
36c4d6f592
11 changed files with 80 additions and 26 deletions
|
@ -195,8 +195,7 @@ nlohmann::json Args::toJSON()
|
|||
j["shortName"] = std::string(1, flag->shortName);
|
||||
if (flag->description != "")
|
||||
j["description"] = flag->description;
|
||||
if (flag->category != "")
|
||||
j["category"] = flag->category;
|
||||
j["category"] = flag->category;
|
||||
if (flag->handler.arity != ArityAny)
|
||||
j["arity"] = flag->handler.arity;
|
||||
if (!flag->labels.empty())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue