1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-28 17:51:15 +02:00

Start generation of the nix.1 manpage

This commit is contained in:
Eelco Dolstra 2020-08-17 19:33:18 +02:00
parent a72a20d68f
commit 6f19c776db
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE
6 changed files with 63 additions and 2 deletions

View file

@ -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);