btrfs-progs: introduce helper for parsing args without options
authorDavid Sterba <dsterba@suse.com>
Thu, 14 Jan 2016 09:30:35 +0000 (10:30 +0100)
committerDavid Sterba <dsterba@suse.com>
Thu, 14 Jan 2016 10:07:10 +0000 (11:07 +0100)
commita6cc8ea10ad84e4b7d1303ed048e644f0dd7ae04
tree028fb30b5e2bcaac84f849b441ca9c3284371fe7
parentc26dc1ef339c373c59a7c1626bb21d64811476ee
btrfs-progs: introduce helper for parsing args without options

All commands should support the "--" option separator. This is
transparently handled by getopt, but we don't use that everywhere.
Introduce a helper for commands that take no options (just the path).
The object file dependencies need to be adjusted a bit.

Signed-off-by: David Sterba <dsterba@suse.com>
Makefile.in
utils.c
utils.h