diff options
author | David Sterba <dsterba@suse.cz> | 2015-04-08 17:39:51 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2015-04-08 17:39:51 +0200 |
commit | 08f9acadab168a2f337542dcceaa3c5e748c1e83 (patch) | |
tree | 93ee94103808d8fa4c955ab97602d558a460cd42 /btrfs-map-logical.c | |
parent | 4074ae5f2bac71889527e817ddeee5fd85a3ba59 (diff) |
btrfs-progs: getopt, use symbolic name for argument requirements
Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'btrfs-map-logical.c')
-rw-r--r-- | btrfs-map-logical.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/btrfs-map-logical.c b/btrfs-map-logical.c index 5d14035e..e5e2da5d 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} }; |