mirror of
https://github.com/clap-rs/clap
synced 2024-12-12 13:52:34 +00:00
495 B
495 B
This requires enabling the [derive
feature flag][crate::_features].
Help:
$ echo --help
Usage: echo --text <TEXT>
Options:
-h, --help Print help
Echo:
-t, --text <TEXT> The text to be echoed [aliases: text]
$ ping --help
Usage: ping
Options:
-h, --help Print help
$ exit --help
Usage: exit
Options:
-h, --help Print help
Echo:
$ echo -t 'Hello, world!'
Hello, world!
Ping:
$ ping
pong
Exit:
$ exit
Exiting ...