• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 use super::utils;
2 
3 use clap::Command;
4 
5 #[test]
very_large_display_order()6 fn very_large_display_order() {
7     let cmd = Command::new("test").subcommand(Command::new("sub").display_order(usize::MAX));
8 
9     utils::assert_output(
10         cmd,
11         "test --help",
12         "\
13 Usage: test [COMMAND]
14 
15 Commands:
16   help  Print this message or the help of the given subcommand(s)
17   sub
18 
19 Options:
20   -h, --help  Print help
21 ",
22         false,
23     );
24 }
25