xref: /third_party/rust/crates/clap/tests/builder/display_order.rs (revision 19625d8c)
  • Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/rust/crates/clap/tests/builder/
1use super::utils;
2
3use clap::Command;
4
5#[test]
6fn 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        "\
13Usage: test [COMMAND]
14
15Commands:
16  help  Print this message or the help of the given subcommand(s)
17  sub
18
19Options:
20  -h, --help  Print help
21",
22        false,
23    );
24}
25

Indexes created Thu Nov 07 10:32:03 CST 2024