mirror of
https://github.com/clap-rs/clap
synced 2024-11-10 23:04:23 +00:00
bfa02fd418
This ports our example testing over to [trycmd](https://docs.rs/) so we can: - More thoroughly test our examples - Provide always-up-to-date example usage The old way of testing automatically picked up examples. This new way requires we have a `.md` file that uses the example in some way. Notes: - Moved overall example description to the `.md` file - I added cross-linking between related examples - `14_groups` had a redundant paragraph (twice talked about "one and only one"
24 lines
352 B
Markdown
24 lines
352 B
Markdown
Apps describe the top level application
|
|
|
|
You can see this in the help:
|
|
```bash
|
|
$ 02_apps --help
|
|
MyApp 1.0
|
|
|
|
Kevin K. <kbknapp@gmail.com>
|
|
|
|
Does awesome things
|
|
|
|
USAGE:
|
|
02_apps[EXE]
|
|
|
|
OPTIONS:
|
|
-h, --help Print help information
|
|
-V, --version Print version information
|
|
```
|
|
|
|
And among the version
|
|
```bash
|
|
$ 02_apps --version
|
|
MyApp 1.0
|
|
```
|