summaryrefslogtreecommitdiffstats
path: root/text-utils/hexdump.c
diff options
context:
space:
mode:
authorPhil Ruffwind2016-03-06 19:45:02 +0100
committerPhil Ruffwind2016-03-06 19:47:32 +0100
commit925ced8353fe1225abb87b522f0fe14bf0aed589 (patch)
tree908b50a82a4364ce6d75a37213fc8b9a0d373084 /text-utils/hexdump.c
parentblkdiscard: add --zeroout (BLKZEROOUT ioctl) (diff)
downloadkernel-qcow2-util-linux-925ced8353fe1225abb87b522f0fe14bf0aed589.tar.gz
kernel-qcow2-util-linux-925ced8353fe1225abb87b522f0fe14bf0aed589.tar.xz
kernel-qcow2-util-linux-925ced8353fe1225abb87b522f0fe14bf0aed589.zip
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 <rf@rufflewind.com>
Diffstat (limited to 'text-utils/hexdump.c')
-rw-r--r--text-utils/hexdump.c6
1 files changed, 3 insertions, 3 deletions
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'},