mirror of
https://github.com/NixOS/nix
synced 2025-07-02 13:31:48 +02:00
Print common flags in --help
This commit is contained in:
parent
ac0fb38e8a
commit
069409d167
3 changed files with 15 additions and 11 deletions
|
@ -187,7 +187,7 @@ static void showHelp(std::vector<std::string> subcommand, MultiCommand & topleve
|
|||
*vUtils);
|
||||
|
||||
auto attrs = state.buildBindings(16);
|
||||
attrs.alloc("command").mkString(toplevel.toJSON().dump());
|
||||
attrs.alloc("toplevel").mkString(toplevel.toJSON().dump());
|
||||
|
||||
auto vRes = state.allocValue();
|
||||
state.callFunction(*vGenerateManpage, state.allocValue()->mkAttrs(attrs), *vRes, noPos);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue