1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-08 19:46:02 +01:00

showHelp(): Use one callFunction

This commit is contained in:
Eelco Dolstra 2025-10-27 14:52:18 +01:00
parent bef3c37cb2
commit bbfaaf3a20

View file

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