coreutils icon indicating copy to clipboard operation
coreutils copied to clipboard

unexpand and others -h & --help generate different outputs

Open sylvestre opened this issue 3 years ago • 0 comments

$ ./target/debug/coreutils unexpand --help


unexpand 0.0.13
Convert blanks in each FILE to tabs, writing to standard output.
With no FILE, or when FILE is -, read standard input.

USAGE:
    ./target/debug/coreutils unexpand [OPTION]... [FILE]...

OPTIONS:
    -a, --all
            convert all blanks, instead of just initial blanks

        --first-only
            convert only leading sequences of blanks (overrides -a)

vs

$ ./target/debug/coreutils unexpand -h


unexpand 0.0.13
Convert blanks in each FILE to tabs, writing to standard output.
With no FILE, or when FILE is -, read standard input.

USAGE:
    ./target/debug/coreutils unexpand [OPTION]... [FILE]...

OPTIONS:
    -a, --all            convert all blanks, instead of just initial blanks
        --first-only     convert only leading sequences of blanks (overrides -a)

I wonder why we have 2 empty lines at the start

This has been the source of a problem in tests/misc/usage_vs_getopt.sh

sylvestre avatar Apr 05 '22 20:04 sylvestre