diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-08-17 19:33:18 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2020-08-17 19:33:18 +0200 |
commit | 6f19c776db280a46e84d6e84d83814445869ef37 (patch) | |
tree | 6450cbf8137d25c696f1813271e1c69ed1814233 /src/libutil/args.cc | |
parent | a72a20d68fe6ae75f05f69e7de0bc3326d779144 (diff) |
Start generation of the nix.1 manpage
Diffstat (limited to 'src/libutil/args.cc')
-rw-r--r-- | src/libutil/args.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libutil/args.cc b/src/libutil/args.cc index bf5e7ce95..ad83a2414 100644 --- a/src/libutil/args.cc +++ b/src/libutil/args.cc @@ -238,6 +238,7 @@ nlohmann::json Args::toJSON() } auto res = nlohmann::json::object(); + res["description"] = description(); res["flags"] = std::move(flags); res["args"] = std::move(args); return res; @@ -371,7 +372,7 @@ MultiCommand::MultiCommand(const Commands & commands) : commands(commands) { expectArgs({ - .label = "command", + .label = "subcommand", .optional = true, .handler = {[=](std::string s) { assert(!command); |