2021-11-30 15:31:19 +00:00
|
|
|
use crate::utils;
|
2021-09-17 01:54:43 +00:00
|
|
|
|
|
|
|
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]
|
|
|
|
|
2021-10-11 22:01:33 +00:00
|
|
|
OPTIONS:
|
2021-10-08 17:05:40 +00:00
|
|
|
-h, --help Print help information
|
2021-09-17 01:54:43 +00:00
|
|
|
|
|
|
|
SUBCOMMANDS:
|
|
|
|
help Print this message or the help of the given subcommand(s)
|
2021-09-24 15:58:39 +00:00
|
|
|
sub
|
|
|
|
",
|
2021-09-17 01:54:43 +00:00
|
|
|
false
|
|
|
|
));
|
|
|
|
}
|