1
1
mirror of https://github.com/walles/moar.git synced 2024-08-17 07:50:35 +03:00

Mention transparent decompression in --help message

This commit is contained in:
Johan Walles 2021-07-01 19:21:42 +02:00
parent ce8ef9d1cc
commit a710033d6f
2 changed files with 3 additions and 1 deletions

View File

@ -22,7 +22,7 @@ Doing the right thing includes:
* Supports displaying ANSI color coded texts (like the output from
`git diff` [| `riff`](https://github.com/walles/riff) for example)
* Supports UTF-8 input and output
* Automatic decompression of compressed files (`.gz`, `.bz2`, `.xz`)
* **Automatic decompression** of compressed files (`.gz`, `.bz2`, `.xz`)
* The position in the file is always shown
* Supports **word wrapping** (on actual word boundaries) if requested using
`--wrap` or by pressing <kbd>w</kbd>

View File

@ -38,6 +38,8 @@ func printUsage(output io.Writer, flagSet *flag.FlagSet, printCommandline bool)
_, _ = fmt.Fprintln(output, " moar [options] <file>")
_, _ = fmt.Fprintln(output, " ... | moar")
_, _ = fmt.Fprintln(output, " moar < file")
_, _ = fmt.Fprintln(output, "")
_, _ = fmt.Fprintln(output, "Shows file contents. Compressed files will be transparently decompressed.")
_, _ = fmt.Fprintln(output)
_, _ = fmt.Fprintln(output, "Environment:")
if len(moarEnv) == 0 {