mirror of
https://github.com/clap-rs/clap
synced 2024-12-13 22:32:33 +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"
512 B
512 B
You can have clap pull the application metadata directly from your Cargo.toml using the
app_from_crate!()
macro.
$ 09_cargo_metadata --help
clap 3.0.0-beta.5
Kevin K. <kbknapp@gmail.com>:Clap Maintainers
A simple to use, efficient, and full-featured Command Line Argument Parser
USAGE:
09_cargo_metadata[EXE]
OPTIONS:
-h, --help Print help information
-V, --version Print version information
$ 09_cargo_metadata --version
...
(censored to keep the release process easy)