From 08f9acadab168a2f337542dcceaa3c5e748c1e83 Mon Sep 17 00:00:00 2001 From: David Sterba Date: Wed, 8 Apr 2015 17:39:51 +0200 Subject: btrfs-progs: getopt, use symbolic name for argument requirements Signed-off-by: David Sterba --- btrfs-map-logical.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'btrfs-map-logical.c') diff --git a/btrfs-map-logical.c b/btrfs-map-logical.c index 5d14035..e5e2da5 100644 --- a/btrfs-map-logical.c +++ b/btrfs-map-logical.c @@ -126,10 +126,10 @@ int main(int ac, char **av) int c; static const struct option long_options[] = { /* { "byte-count", 1, NULL, 'b' }, */ - { "logical", 1, NULL, 'l' }, - { "copy", 1, NULL, 'c' }, - { "output", 1, NULL, 'o' }, - { "bytes", 1, NULL, 'b' }, + { "logical", required_argument, NULL, 'l' }, + { "copy", required_argument, NULL, 'c' }, + { "output", required_argument, NULL, 'o' }, + { "bytes", required_argument, NULL, 'b' }, { NULL, 0, NULL, 0} }; -- cgit v1.2.1