Add 'nix help' manpage

This commit is contained in:
Eelco Dolstra
2020-12-21 13:32:29 +01:00
parent e6bea9c9b1
commit daf365b0b7
2 changed files with 22 additions and 12 deletions
+17
View File
@@ -0,0 +1,17 @@
R""(
# Examples
* Show help about `nix` in general:
```console
# nix help
```
* Show help about a particular subcommand:
```console
# nix help flake info
```
)""
+5 -12
View File
@@ -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