added set_terminal_title arg to clap_app.rs to fix ci errors

This commit is contained in:
Oliver looney 2024-01-29 09:47:41 +00:00
parent 60e32cf823
commit 7f12989127
No known key found for this signature in database
3 changed files with 10 additions and 5 deletions

View File

@ -50,9 +50,6 @@ Options:
--diff-context <N> --diff-context <N>
Include N lines of context around added/removed/modified lines when using '--diff'. Include N lines of context around added/removed/modified lines when using '--diff'.
--set_terminal_title
Sets terminal title to filenames when using a pager.
--tabs <T> --tabs <T>
Set the tab width to T spaces. Use a width of 0 to pass tabs through directly Set the tab width to T spaces. Use a width of 0 to pass tabs through directly
@ -163,6 +160,9 @@ Options:
--acknowledgements --acknowledgements
Show acknowledgements. Show acknowledgements.
--set_terminal_title
Sets terminal title to filenames when using a pager.
-h, --help -h, --help
Print help (see a summary with '-h') Print help (see a summary with '-h')

View File

@ -21,8 +21,6 @@ Options:
Specify the name to display for a file. Specify the name to display for a file.
-d, --diff -d, --diff
Only show lines that have been added/removed/modified. Only show lines that have been added/removed/modified.
--set_terminal_title
Sets terminal title when using a pager
--tabs <T> --tabs <T>
Set the tab width to T spaces. Set the tab width to T spaces.
--wrap <mode> --wrap <mode>

View File

@ -567,6 +567,13 @@ pub fn build_app(interactive_output: bool) -> Command {
.action(ArgAction::SetTrue) .action(ArgAction::SetTrue)
.hide_short_help(true) .hide_short_help(true)
.help("Show acknowledgements."), .help("Show acknowledgements."),
)
.arg(
Arg::new("set_terminal_title")
.long("set_terminal_title")
.action(ArgAction::SetTrue)
.hide_short_help(true)
.help("Sets terminal title to filenames when using a pager."),
); );
// Check if the current directory contains a file name cache. Otherwise, // Check if the current directory contains a file name cache. Otherwise,