mirror of
https://github.com/clap-rs/clap
synced 2025-01-21 17:13:53 +00:00
21 lines
383 B
Markdown
21 lines
383 B
Markdown
|
Subcommands can also have aliases
|
||
|
|
||
|
```
|
||
|
$ 21_aliases --help
|
||
|
MyApp
|
||
|
|
||
|
USAGE:
|
||
|
21_aliases[EXE] [SUBCOMMAND]
|
||
|
|
||
|
OPTIONS:
|
||
|
-h, --help Print help information
|
||
|
|
||
|
SUBCOMMANDS:
|
||
|
help Print this message or the help of the given subcommand(s)
|
||
|
ls Adds files to myapp
|
||
|
$ 21_aliases ls .
|
||
|
'myapp add' was used, input is: .
|
||
|
$ 21_aliases dir .
|
||
|
'myapp add' was used, input is: .
|
||
|
```
|