diff options
author | Valentin Gagarin <valentin.gagarin@tweag.io> | 2023-11-10 19:22:42 +0100 |
---|---|---|
committer | Valentin Gagarin <valentin.gagarin@tweag.io> | 2023-11-10 19:22:42 +0100 |
commit | a68bf15fe6d45588986bb13e9c294f594cb5dd57 (patch) | |
tree | f5025f52a4baba4606d1a13964665bd882ee62d3 /src/nix/main.cc | |
parent | 78fd62139714bc68a682572e303b7e3c52f988f2 (diff) |
backport fix for the `--help` output
Diffstat (limited to 'src/nix/main.cc')
-rw-r--r-- | src/nix/main.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nix/main.cc b/src/nix/main.cc index d05bac68e..eb510eecc 100644 --- a/src/nix/main.cc +++ b/src/nix/main.cc @@ -218,7 +218,8 @@ static void showHelp(std::vector<std::string> subcommand, NixArgs & toplevel) vDump->mkString(toplevel.dumpCli()); auto vRes = state.allocValue(); - state.callFunction(*vGenerateManpage, *vDump, *vRes, noPos); + state.callFunction(*vGenerateManpage, state.getBuiltin("false"), *vRes, noPos); + state.callFunction(*vRes, *vDump, *vRes, noPos); auto attr = vRes->attrs->get(state.symbols.create(mdName + ".md")); if (!attr) |