mirror of
https://github.com/sharkdp/bat.git
synced 2025-01-11 16:18:21 +01:00
Update help text
This commit is contained in:
parent
8a3446d219
commit
f98a96c1ed
@ -84,9 +84,10 @@ pub fn build_app(interactive_output: bool) -> ClapApp<'static, 'static> {
|
|||||||
.help("Set the color theme for syntax highlighting.")
|
.help("Set the color theme for syntax highlighting.")
|
||||||
.long_help(
|
.long_help(
|
||||||
"Set the theme for syntax highlighting. Use '--list-themes' to \
|
"Set the theme for syntax highlighting. Use '--list-themes' to \
|
||||||
see all available themes. To set a default theme, export the \
|
see all available themes. To set a default theme, add the \
|
||||||
|
'--theme=\"...\"' option to the configuration file or export the \
|
||||||
BAT_THEME environment variable (e.g.: export \
|
BAT_THEME environment variable (e.g.: export \
|
||||||
BAT_THEME=\"TwoDark\").",
|
BAT_THEME=\"...\").",
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
.arg(
|
.arg(
|
||||||
@ -130,8 +131,9 @@ pub fn build_app(interactive_output: bool) -> ClapApp<'static, 'static> {
|
|||||||
borders, Git modifications, ..) to display in addition to the \
|
borders, Git modifications, ..) to display in addition to the \
|
||||||
file contents. The argument is a comma-separated list of \
|
file contents. The argument is a comma-separated list of \
|
||||||
components to display (e.g. 'numbers,changes,grid') or a \
|
components to display (e.g. 'numbers,changes,grid') or a \
|
||||||
pre-defined style ('full'). To set a default theme, export the \
|
pre-defined style ('full'). To set a default style, add the \
|
||||||
BAT_STYLE environment variable (e.g.: export BAT_STYLE=\"numbers\"). \
|
'--style=\"..\"' option to the configuration file or export the \
|
||||||
|
BAT_STYLE environment variable (e.g.: export BAT_STYLE=\"..\"). \
|
||||||
Possible values: *auto*, full, plain, changes, header, grid, numbers.",
|
Possible values: *auto*, full, plain, changes, header, grid, numbers.",
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
@ -243,9 +245,9 @@ pub fn build_app(interactive_output: bool) -> ClapApp<'static, 'static> {
|
|||||||
"Specify when to use the pager. To control which pager \
|
"Specify when to use the pager. To control which pager \
|
||||||
is used, set the PAGER or BAT_PAGER environment \
|
is used, set the PAGER or BAT_PAGER environment \
|
||||||
variables (the latter takes precedence) or use the '--pager' option. \
|
variables (the latter takes precedence) or use the '--pager' option. \
|
||||||
The default pager is 'less'. To disable the pager permanently,\
|
To disable the pager permanently, set BAT_PAGER to an empty string \
|
||||||
set BAT_PAGER to an empty string or set '--pager \"\"' in the config \
|
or set '--paging=never' in the configuration file. \
|
||||||
file. Possible values: *auto*, never, always.",
|
Possible values: *auto*, never, always.",
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
.arg(
|
.arg(
|
||||||
@ -258,7 +260,9 @@ pub fn build_app(interactive_output: bool) -> ClapApp<'static, 'static> {
|
|||||||
.help("Determine which pager to use.")
|
.help("Determine which pager to use.")
|
||||||
.long_help(
|
.long_help(
|
||||||
"Determine which pager is used. This option will overwrite \
|
"Determine which pager is used. This option will overwrite \
|
||||||
the PAGER and BAT_PAGER environment variables. \
|
the PAGER and BAT_PAGER environment variables. The default \
|
||||||
|
pager is 'less'. To disable the pager completely, use the \
|
||||||
|
'--paging' option. \
|
||||||
Example: '--pager \"less -RF\"'.",
|
Example: '--pager \"less -RF\"'.",
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user