mirror of
https://github.com/clap-rs/clap
synced 2024-12-13 22:32:33 +00:00
7110401595
This just affects how it's rendered; rather than attempting to highlight these blocks as a shell script, they'll get highlighted as console output. See the rendered versions for a better comparison.
14 lines
339 B
Markdown
14 lines
339 B
Markdown
*Jump to [source](multicall-hostname.rs)*
|
|
|
|
Example of a `hostname-style` multicall program
|
|
|
|
See the documentation for clap::AppSettings::Multicall for rationale.
|
|
|
|
This example omits the implementation of displaying address config
|
|
|
|
```console
|
|
$ hostname
|
|
www
|
|
|
|
```
|
|
*Note: without the links setup, we can't demonstrate the multicall behavior*
|