1For more on creating a custom subcommand, see [the cargo
2book](https://doc.rust-lang.org/cargo/reference/external-tools.html#custom-subcommands).
3The crate [`clap-cargo`](https://github.com/crate-ci/clap-cargo) can help in
4mimicking cargo's interface.
5
6The help looks like:
7```console
8$ cargo-example --help
9cargo
10
11USAGE:
12    cargo <SUBCOMMAND>
13
14OPTIONS:
15    -h, --help    Print help information
16
17SUBCOMMANDS:
18    example    A simple to use, efficient, and full-featured Command Line Argument Parser
19    help       Print this message or the help of the given subcommand(s)
20
21$ cargo-example example --help
22cargo-example [..]
23A simple to use, efficient, and full-featured Command Line Argument Parser
24
25USAGE:
26    cargo example [OPTIONS]
27
28OPTIONS:
29    -h, --help                    Print help information
30        --manifest-path <PATH>
31    -V, --version                 Print version information
32
33```
34
35Then to directly invoke the command, run:
36```console
37$ cargo-example example
38None
39
40$ cargo-example example --manifest-path Cargo.toml
41Some("Cargo.toml")
42
43```
44