summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Nordholts <enselic@gmail.com>2022-01-07 10:38:57 +0100
committerMartin Nordholts <enselic@gmail.com>2022-01-08 17:01:20 +0100
commit5b37438f08398282bd5c4fecbe90ba0141dfbc4a (patch)
tree7f71cc95883e813d68e6ddbfb33f50787afddcf2
parent3f7bff90ba1d8748ba52c280a28903bfb1c67cf8 (diff)
`bat --help`: Put `--ignored-suffix` directly after `--map-syntax`
It feels out of place to have between `--acknowledgements` and `--help`.
-rw-r--r--src/bin/bat/clap_app.rs24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/bin/bat/clap_app.rs b/src/bin/bat/clap_app.rs
index 94ddce55..e0460f74 100644
--- a/src/bin/bat/clap_app.rs
+++ b/src/bin/bat/clap_app.rs
@@ -350,6 +350,18 @@ pub fn build_app(interactive_output: bool) -> ClapApp<'static, 'static> {
.takes_value(true),
)
.arg(
+ Arg::with_name("ignored-suffix")
+ .number_of_values(1)
+ .multiple(true)
+ .takes_value(true)
+ .long("ignored-suffix")
+ .hidden_short_help(true)
+ .help(
+ "Ignore extension. For example:\n \
+ 'bat --ignored-suffix \".dev\" my_file.json.dev' will use JSON syntax, and ignore '.dev'"
+ )
+ )
+ .arg(
Arg::with_name("theme")
.long("theme")
.overrides_with("theme")
@@ -514,18 +526,6 @@ pub fn build_app(interactive_output: bool) -> ClapApp<'static, 'static> {
.hidden_short_help(true)
.help("Show acknowledgements."),
)
- .arg(
- Arg::with_name("ignored-suffix")
- .number_of_values(1)
- .multiple(true)
- .takes_value(true)
- .long("ignored-suffix")
- .hidden_short_help(true)
- .help(
- "Ignore extension. For example:\n \
- 'bat --ignored-suffix \".dev\" my_file.json.dev' will use JSON syntax, and ignore '.dev'"
- )
- )
.help_message("Print this help message.")
.version_message("Show version information.");