btrfs-progs: rework option parser to use getopt for global options
authorDavid Sterba <dsterba@suse.com>
Mon, 21 Nov 2016 12:40:43 +0000 (13:40 +0100)
committerDavid Sterba <dsterba@suse.com>
Fri, 31 Mar 2017 17:40:57 +0000 (19:40 +0200)
commit010ceab56e067b87ea282fde6ff792c1ceefd7dc
treee77e9648f35f066ef5d18da1efebadfd60968a39
parent4a1d07e8c3ae610c863e57ee31e1484d652367ea
btrfs-progs: rework option parser to use getopt for global options

Preparatory work to support more global options. The current parser
abuses the subcommand table to understand help and version when
specified as options (--). These are now special case when processing
the global options.

Signed-off-by: David Sterba <dsterba@suse.com>
btrfs.c