diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2021-01-25 19:03:13 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2021-01-25 19:03:13 +0100 |
commit | 36c4d6f59247826dde32ad2e6b5a9471a9a1c911 (patch) | |
tree | c07928e4554aaf6622cd1df996fd4fdc1c368f20 /src/libutil/args.cc | |
parent | 807d963ee8d23e88f09e28365b045d322530c5aa (diff) |
Group common options
Diffstat (limited to 'src/libutil/args.cc')
-rw-r--r-- | src/libutil/args.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libutil/args.cc b/src/libutil/args.cc index 6d57e1a34..71bae0504 100644 --- a/src/libutil/args.cc +++ b/src/libutil/args.cc @@ -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()) |