mirror of
https://github.com/clap-rs/clap
synced 2024-11-15 17:08:00 +00:00
27 lines
488 B
Rust
27 lines
488 B
Rust
|
mod utils;
|
||
|
|
||
|
use clap::App;
|
||
|
|
||
|
#[test]
|
||
|
fn very_large_display_order() {
|
||
|
let app = App::new("test").subcommand(App::new("sub").display_order(usize::MAX));
|
||
|
|
||
|
assert!(utils::compare_output(
|
||
|
app,
|
||
|
"test --help",
|
||
|
"test
|
||
|
|
||
|
USAGE:
|
||
|
test [SUBCOMMAND]
|
||
|
|
||
|
FLAGS:
|
||
|
-h, --help Print help information
|
||
|
-V, --version Print version information
|
||
|
|
||
|
SUBCOMMANDS:
|
||
|
help Print this message or the help of the given subcommand(s)
|
||
|
sub",
|
||
|
false
|
||
|
));
|
||
|
}
|