aboutsummaryrefslogtreecommitdiff
path: root/src/nix/main.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-12-10 18:40:16 +0100
committerEelco Dolstra <edolstra@gmail.com>2020-12-21 13:32:29 +0100
commitdaf365b0b731bb3ac86128a965394dcff8d6f5b5 (patch)
treedd3c8cccc77a36eb3bebc89a5018bbb012323063 /src/nix/main.cc
parente6bea9c9b10ded0e65981edf84cedd00ec86883a (diff)
Add 'nix help' manpage
Diffstat (limited to 'src/nix/main.cc')
-rw-r--r--src/nix/main.cc17
1 files changed, 5 insertions, 12 deletions
diff --git a/src/nix/main.cc b/src/nix/main.cc
index e7a15dec9..afe7cb8d7 100644
--- a/src/nix/main.cc
+++ b/src/nix/main.cc
@@ -205,21 +205,14 @@ struct CmdHelp : Command
std::string description() override
{
- return "show help about 'nix' or a particular subcommand";
+ return "show help about `nix` or a particular subcommand";
}
- Examples examples() override
+ std::string doc() override
{
- return {
- Example{
- "To show help about 'nix' in general:",
- "nix help"
- },
- Example{
- "To show help about a particular subcommand:",
- "nix help run"
- },
- };
+ return
+ #include "help.md"
+ ;
}
void run() override