From c7ad82209a3f8d1f2b14c17a95655f83b5a9e885 Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Mon, 19 Oct 2020 21:57:04 +0100 Subject: [PATCH] colrm: fix argument parsing 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 --- text-utils/colrm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/text-utils/colrm.c b/text-utils/colrm.c index f9dfd59385..7df5a74506 100644 --- a/text-utils/colrm.c +++ b/text-utils/colrm.c @@ -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': -- 2.47.3