Skip to content

Commit

Permalink
Add bat -h v0.22.1 to tests
Browse files Browse the repository at this point in the history
Because that's the regression test for cmd-help in the bat project. If
this changes, we have to manually update it on that project. So let's
keep track of it.
  • Loading branch information
victor-gp committed Jan 2, 2024
1 parent fe5e857 commit 07c1f29
Show file tree
Hide file tree
Showing 2 changed files with 86 additions and 0 deletions.
43 changes: 43 additions & 0 deletions tests/highlighted/bat-short-0.22.1.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

43 changes: 43 additions & 0 deletions tests/source/bat-short-0.22.1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
bat 0.22.1
A cat(1) clone with wings.

Use '--help' instead of '-h' to see a more detailed version of the help text.

USAGE:
bat [OPTIONS] [FILE]...
bat <SUBCOMMAND>

ARGS:
<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).
-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 this help message.
-V, --version Print version information

SUBCOMMANDS:
cache Modify the syntax-definition and theme cache

Note: `bat -h` prints a short and concise overview while `bat --help` gives all details.

0 comments on commit 07c1f29

Please sign in to comment.