aboutsummaryrefslogtreecommitdiff
path: root/src/nix/main.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2022-10-12 13:43:11 +0200
committerEelco Dolstra <edolstra@gmail.com>2022-10-12 13:43:11 +0200
commitae2d330455996f5c1099b5accf36ad348b3d5e9b (patch)
tree29da9c586e4c6a5fecda4207523b4b31b88a3dae /src/nix/main.cc
parentf3193edd87be915910f0ae239b058713ef685c74 (diff)
parent069409d16787232dfbaac6a580d4e66d11bb5c86 (diff)
Merge branch 'print-common-flags' of github.com:Hoverbear/nix
Diffstat (limited to 'src/nix/main.cc')
-rw-r--r--src/nix/main.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix/main.cc b/src/nix/main.cc
index e0155cd5d..006911216 100644
--- a/src/nix/main.cc
+++ b/src/nix/main.cc
@@ -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);