on master help sign in
`bat --help`: Put `--ignored-suffix` directly after `--map-syntax`

It feels out of place to have between `--acknowledgements` and `--help`.

commit5b37438f08398282bd5c4fecbe90ba0141dfbc4a authorMartin Nordholts <enselic@gmail.com> dateFri 7 Jan 2022, 10:38 (5 years ago) parent3f7bff9
1 file changed+12−12
src/bin/bat/clap_app.rs+12−12
src/bin/bat/clap_app.rs+12−12
@@ -349,6 +349,18 @@ pub fn build_app(interactive_output: bool) -> ClapApp<'static, 'static> {
349349 )
350350 .takes_value(true),
351351 )
352+ .arg(
353+ Arg::with_name("ignored-suffix")
354+ .number_of_values(1)
355+ .multiple(true)
356+ .takes_value(true)
357+ .long("ignored-suffix")
358+ .hidden_short_help(true)
359+ .help(
360+ "Ignore extension. For example:\n \
361+ 'bat --ignored-suffix \".dev\" my_file.json.dev' will use JSON syntax, and ignore '.dev'"
362+ )
363+ )
352364 .arg(
353365 Arg::with_name("theme")
354366 .long("theme")
@@ -514,18 +526,6 @@ pub fn build_app(interactive_output: bool) -> ClapApp<'static, 'static> {
514526 .hidden_short_help(true)
515527 .help("Show acknowledgements."),
516528 )
517− .arg(
518− Arg::with_name("ignored-suffix")
519− .number_of_values(1)
520− .multiple(true)
521− .takes_value(true)
522− .long("ignored-suffix")
523− .hidden_short_help(true)
524− .help(
525− "Ignore extension. For example:\n \
526− 'bat --ignored-suffix \".dev\" my_file.json.dev' will use JSON syntax, and ignore '.dev'"
527− )
528− )
529529 .help_message("Print this help message.")
530530 .version_message("Show version information.");
531531