mirror of
https://github.com/NixOS/nix.git
synced 2025-11-15 23:12:44 +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());
|
vDump->mkString(toplevel.dumpCli());
|
||||||
|
|
||||||
auto vRes = state.allocValue();
|
auto vRes = state.allocValue();
|
||||||
state.callFunction(*vGenerateManpage, state.getBuiltin("false"), *vRes, noPos);
|
Value * args[]{&state.getBuiltin("false"), vDump};
|
||||||
state.callFunction(*vRes, *vDump, *vRes, noPos);
|
state.callFunction(*vGenerateManpage, args, *vRes, noPos);
|
||||||
|
|
||||||
auto attr = vRes->attrs()->get(state.symbols.create(mdName + ".md"));
|
auto attr = vRes->attrs()->get(state.symbols.create(mdName + ".md"));
|
||||||
if (!attr)
|
if (!attr)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue