Adam Tuja wrote:
You may want to remove --help-long as it's redundant whith `-hh'.

I have already a first attempt at a patch. I'm implementing this reusing the --verbose option. Now --help shows only usage and options as copied below. The long help is shown with '-v -h' and the man page remains as before. Is this what you want?

Compression level is more important than help in case of compressor.
Help is already given if user reads that screen so they don't need to be
informed about it again.

There is a good reason for putting --help and --version at the top: the man page is generated from the --help output, and these options are the first thing that someone new to lzip want to see when reading the man page. https://fossies.org/linux/lzip/doc/lzip.1

Best regards,
Antonio.

Output of 'lzip --help':
--------------------------------------------------------------------------
Short help. Use '-vh' for full help.

Usage: lzip [options] [files]

Options:
  -h, --help                     display this help and exit
  -V, --version                  output version information and exit
  -a, --trailing-error           exit with error status if trailing data
  -b, --member-size=<bytes>      set member size limit of multimember files
  -c, --stdout                   write to standard output, keep input files
  -d, --decompress               decompress, test compressed file integrity
  -f, --force                    overwrite existing output files
  -F, --recompress               force re-compression of compressed files
  -k, --keep                     keep (don't delete) input files
  -l, --list                     print (un)compressed file sizes
  -m, --match-length=<bytes>     set match length limit in bytes [36]
  -o, --output=<file>            write to <file>, keep input files
  -q, --quiet                    suppress all messages
  -s, --dictionary-size=<bytes>  set dictionary size limit in bytes [8 MiB]
  -S, --volume-size=<bytes>      set volume size limit in bytes
  -t, --test                     test compressed file integrity
  -v, --verbose                  be verbose (a 2nd -v gives more)
  -0 .. -9                       set compression level [default 6]
      --loose-trailing           allow trailing data seeming corrupt header

Reply via email to