mirror of
https://github.com/NixOS/nix.git
synced 2025-11-09 03:56:01 +01:00
showHelp(): Use one callFunction
This commit is contained in:
parent
bef3c37cb2
commit
bbfaaf3a20
1 changed files with 2 additions and 2 deletions
|
|
@ -256,8 +256,8 @@ static void showHelp(std::vector<std::string> subcommand, NixArgs & toplevel)
|
|||
vDump->mkString(toplevel.dumpCli());
|
||||
|
||||
auto vRes = state.allocValue();
|
||||
state.callFunction(*vGenerateManpage, state.getBuiltin("false"), *vRes, noPos);
|
||||
state.callFunction(*vRes, *vDump, *vRes, noPos);
|
||||
Value * args[]{&state.getBuiltin("false"), vDump};
|
||||
state.callFunction(*vGenerateManpage, args, *vRes, noPos);
|
||||
|
||||
auto attr = vRes->attrs()->get(state.symbols.create(mdName + ".md"));
|
||||
if (!attr)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue