]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
colrm: fix argument parsing
authorSami Kerola <kerolasa@iki.fi>
Mon, 19 Oct 2020 20:57:04 +0000 (21:57 +0100)
committerSami Kerola <kerolasa@iki.fi>
Sat, 14 Nov 2020 16:06:56 +0000 (16:06 +0000)
Short options had all sortss of characters listed, that were clearly copied
from col(1) command getopt_long() invocation.  Luckily both -V and -h were
part of the short options, but lets get rid of the unnecessary ones.

Fixes: 1647d032a7bfcba36d3dabe627b858b372210d05
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
text-utils/colrm.c

index f9dfd593854754b0fff40d89bbecfc1b2cd53de5..7df5a745060709c0d1ab21c5fb1196962e323a04 100644 (file)
@@ -169,7 +169,7 @@ int main(int argc, char **argv)
        close_stdout_atexit();
 
        while ((opt =
-               getopt_long(argc, argv, "bfhl:pxVH", longopts,
+               getopt_long(argc, argv, "Vh", longopts,
                            NULL)) != -1)
                switch (opt) {
                case 'V':