mirror of
https://github.com/clap-rs/clap
synced 2024-12-15 07:12:32 +00:00
38b9645bed
The executable suffix is unconditionally stripped off the file path so that the file name matches subcommands names without having to add the EXE suffix on different platforms.
13 lines
335 B
Markdown
13 lines
335 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
|
|
|
|
```bash
|
|
$ hostname
|
|
www
|
|
```
|
|
*Note: without the links setup, we can't demonstrate the multicall behavior*
|