mirror of
https://github.com/sharkdp/bat.git
synced 2024-11-21 23:33:26 +01:00
4e34b362f8
From now on, any changes to the help texts will be visible in PR diffs, which will make it very easy to review, and very hard to accidentally miss changes to help texts. If a contributor makes a change to help texts, the `cargo test` failure text they will see contains instructions on how to update the blessed help texts: error: expect test failed --> ../doc/long-help.txt You can update all `expect!` tests by running: env UPDATE_EXPECT=1 cargo test In short, to update blessed help texts, one simply does env UPDATE_EXPECT=1 cargo test Do not run the tests if the `git` feature is missing, since then `--diff` will be missing from `--help`. And do not run the tests on Windows, because then the help text will contain the term `.exe`. Move man page step to after cargo doc step so that the man page exists when we look for it.
37 lines
2.2 KiB
Plaintext
37 lines
2.2 KiB
Plaintext
A cat(1) clone with wings.
|
|
|
|
Usage: bat [OPTIONS] [FILE]...
|
|
bat <COMMAND>
|
|
|
|
Arguments:
|
|
[FILE]... File(s) to print / concatenate. Use '-' for standard input.
|
|
|
|
Options:
|
|
-A, --show-all Show non-printable characters (space, tab, newline, ..).
|
|
-p, --plain... Show plain style (alias for '--style=plain').
|
|
-l, --language <language> Set the language for syntax highlighting.
|
|
-H, --highlight-line <N:M> Highlight lines N through M.
|
|
--file-name <name> Specify the name to display for a file.
|
|
-d, --diff Only show lines that have been added/removed/modified.
|
|
--tabs <T> Set the tab width to T spaces.
|
|
--wrap <mode> Specify the text-wrapping mode (*auto*, never, character).
|
|
-S, --chop-long-lines Truncate all lines longer than screen width. Alias for
|
|
'--wrap=never'.
|
|
-n, --number Show line numbers (alias for '--style=numbers').
|
|
--color <when> When to use colors (*auto*, never, always).
|
|
--italic-text <when> Use italics in output (always, *never*)
|
|
--decorations <when> When to show the decorations (*auto*, never, always).
|
|
--paging <when> Specify when to use the pager, or use `-P` to disable (*auto*,
|
|
never, always).
|
|
-m, --map-syntax <glob:syntax> Use the specified syntax for files matching the glob pattern
|
|
('*.cpp:C++').
|
|
--theme <theme> Set the color theme for syntax highlighting.
|
|
--list-themes Display all supported highlighting themes.
|
|
--style <components> Comma-separated list of style elements to display (*default*,
|
|
auto, full, plain, changes, header, header-filename,
|
|
header-filesize, grid, rule, numbers, snip).
|
|
-r, --line-range <N:M> Only print the lines from N to M.
|
|
-L, --list-languages Display all supported languages.
|
|
-h, --help Print help information (use `--help` for more detail)
|
|
-V, --version Print version information
|