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:
parent
a72a20d68f
commit
6f19c776db
6 changed files with 63 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue