aboutsummaryrefslogtreecommitdiffstats
path: root/cmds-receive.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.cz>2015-04-08 17:39:51 +0200
committerDavid Sterba <dsterba@suse.cz>2015-04-08 17:39:51 +0200
commit08f9acadab168a2f337542dcceaa3c5e748c1e83 (patch)
tree93ee94103808d8fa4c955ab97602d558a460cd42 /cmds-receive.c
parent4074ae5f2bac71889527e817ddeee5fd85a3ba59 (diff)
downloadbtrfs-progs-08f9acadab168a2f337542dcceaa3c5e748c1e83.tar.gz
btrfs-progs-08f9acadab168a2f337542dcceaa3c5e748c1e83.tar.xz
btrfs-progs-08f9acadab168a2f337542dcceaa3c5e748c1e83.zip
btrfs-progs: getopt, use symbolic name for argument requirements
Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'cmds-receive.c')
-rw-r--r--cmds-receive.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds-receive.c b/cmds-receive.c
index a1c72f9..919dc9e 100644
--- a/cmds-receive.c
+++ b/cmds-receive.c
@@ -934,7 +934,7 @@ int cmd_receive(int argc, char **argv)
while (1) {
int c;
static const struct option long_opts[] = {
- { "max-errors", 1, NULL, 'E' },
+ { "max-errors", required_argument, NULL, 'E' },
{ NULL, 0, NULL, 0 }
};