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 --- cmds-subvolume.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmds-subvolume.c') diff --git a/cmds-subvolume.c b/cmds-subvolume.c index a31cb1b8..3d5a766f 100644 --- a/cmds-subvolume.c +++ b/cmds-subvolume.c @@ -404,7 +404,7 @@ static int cmd_subvol_list(int argc, char **argv) while(1) { int c; static const struct option long_options[] = { - {"sort", 1, NULL, 'S'}, + {"sort", required_argument, NULL, 'S'}, {NULL, 0, NULL, 0} }; -- cgit v1.2.3