40d4a25a01
This adds two new methods to the `App` struct: - `ToMarkdown`: creates a markdown documentation string - `ToMan`: creates a man page string Signed-off-by: Sascha Grunert <mail@saschagrunert.de>
48 lines
504 B
Markdown
48 lines
504 B
Markdown
% greet(8)
|
|
|
|
% Harrison
|
|
|
|
# NAME
|
|
|
|
greet - Some app
|
|
|
|
# SYNOPSIS
|
|
|
|
greet
|
|
|
|
# DESCRIPTION
|
|
|
|
app [first_arg] [second_arg]
|
|
|
|
**Usage**:
|
|
|
|
```
|
|
greet [GLOBAL OPTIONS] command [COMMAND OPTIONS] [ARGUMENTS...]
|
|
```
|
|
|
|
# COMMANDS
|
|
|
|
## config, c
|
|
|
|
another usage test
|
|
|
|
**--another-flag, -b**: another usage text
|
|
|
|
**--flag, --fl, -f**="":
|
|
|
|
### sub-config, s, ss
|
|
|
|
another usage test
|
|
|
|
**--sub-command-flag, -s**: some usage text
|
|
|
|
**--sub-flag, --sub-fl, -s**="":
|
|
|
|
## info, i, in
|
|
|
|
retrieve generic information
|
|
|
|
## some-command
|
|
|
|
|