From 925ced8353fe1225abb87b522f0fe14bf0aed589 Mon Sep 17 00:00:00 2001 From: Phil Ruffwind Date: Sun, 6 Mar 2016 13:45:02 -0500 Subject: hexdump: certain long options should not accept arguments As documented in the manual and the usage info, the long options --one-byte-char, --canonical, and --two-bytes-octal should not accept any arguments. Signed-off-by: Phil Ruffwind --- text-utils/hexdump.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'text-utils') diff --git a/text-utils/hexdump.c b/text-utils/hexdump.c index cc1fdf1b8..9d26c4e48 100644 --- a/text-utils/hexdump.c +++ b/text-utils/hexdump.c @@ -66,10 +66,10 @@ parse_args(int argc, char **argv, struct hexdump *hex) static const struct option longopts[] = { {"one-byte-octal", no_argument, NULL, 'b'}, - {"one-byte-char", required_argument, NULL, 'c'}, - {"canonical", required_argument, NULL, 'C'}, + {"one-byte-char", no_argument, NULL, 'c'}, + {"canonical", no_argument, NULL, 'C'}, {"two-bytes-decimal", no_argument, NULL, 'd'}, - {"two-bytes-octal", required_argument, NULL, 'o'}, + {"two-bytes-octal", no_argument, NULL, 'o'}, {"two-bytes-hex", no_argument, NULL, 'x'}, {"format", required_argument, NULL, 'e'}, {"format-file", required_argument, NULL, 'f'}, -- cgit v1.2.3-55-g7522