diff --git a/clap_builder/src/output/help_template.rs b/clap_builder/src/output/help_template.rs index 2016bc8808b..68ff58077e5 100644 --- a/clap_builder/src/output/help_template.rs +++ b/clap_builder/src/output/help_template.rs @@ -963,7 +963,8 @@ impl<'cmd, 'writer> HelpTemplate<'cmd, 'writer> { } fn subcommand_next_line_help(&self, cmd: &Command, spec_vals: &str, longest: usize) -> bool { - if self.next_line_help | self.use_long { + // Ignore `self.use_long` since subcommands are only shown as short help + if self.next_line_help { // setting_next_line true } else { diff --git a/tests/ui/help_cmd_stdout.toml b/tests/ui/help_cmd_stdout.toml index 198dec3241e..550a753a6c8 100644 --- a/tests/ui/help_cmd_stdout.toml +++ b/tests/ui/help_cmd_stdout.toml @@ -5,10 +5,8 @@ stdout = """ Usage: stdio-fixture[EXE] [OPTIONS] [COMMAND] Commands: - more - - help - Print this message or the help of the given subcommand(s) + more + help Print this message or the help of the given subcommand(s) Options: --verbose diff --git a/tests/ui/help_flag_stdout.toml b/tests/ui/help_flag_stdout.toml index ef92b378791..29241b21875 100644 --- a/tests/ui/help_flag_stdout.toml +++ b/tests/ui/help_flag_stdout.toml @@ -5,10 +5,8 @@ stdout = """ Usage: stdio-fixture[EXE] [OPTIONS] [COMMAND] Commands: - more - - help - Print this message or the help of the given subcommand(s) + more + help Print this message or the help of the given subcommand(s) Options: --verbose