aboutsummaryrefslogtreecommitdiff
path: root/src/nix/main.cc
diff options
context:
space:
mode:
authorAna Hobden <operator@hoverbear.org>2022-10-07 09:07:22 -0700
committerAna Hobden <operator@hoverbear.org>2022-10-07 09:07:22 -0700
commit069409d16787232dfbaac6a580d4e66d11bb5c86 (patch)
tree0dc74aeb64e66c4b33f4c0b2ba5fc43903dfd8d1 /src/nix/main.cc
parentac0fb38e8a5a25a84fa17704bd31b453211263eb (diff)
Print common flags in --help
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);