mirror of
https://github.com/clap-rs/clap
synced 2024-12-15 07:12:32 +00:00
11076a5c70
Force sorting with `next_display_order(None)` Fixes #2808
537 B
537 B
$ 03_02_option --help
clap [..]
A simple to use, efficient, and full-featured Command Line Argument Parser
USAGE:
03_02_option[EXE] [OPTIONS]
OPTIONS:
-n, --name <NAME>
-h, --help Print help information
-V, --version Print version information
$ 03_02_option
name: None
$ 03_02_option --name bob
name: Some("bob")
$ 03_02_option --name=bob
name: Some("bob")
$ 03_02_option -n bob
name: Some("bob")
$ 03_02_option -n=bob
name: Some("bob")
$ 03_02_option -nbob
name: Some("bob")