diff options
author | David Sterba <dsterba@suse.com> | 2016-01-14 10:30:35 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-01-14 11:07:10 +0100 |
commit | a6cc8ea10ad84e4b7d1303ed048e644f0dd7ae04 (patch) | |
tree | 028fb30b5e2bcaac84f849b441ca9c3284371fe7 /utils.h | |
parent | c26dc1ef339c373c59a7c1626bb21d64811476ee (diff) | |
download | btrfs-progs-a6cc8ea10ad84e4b7d1303ed048e644f0dd7ae04.tar.gz |
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>
Diffstat (limited to 'utils.h')
-rw-r--r-- | utils.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -274,6 +274,7 @@ const char *get_argv0_buf(void); "-t|--tbytes show sizes in TiB, or TB with --si" unsigned int get_unit_mode_from_arg(int *argc, char *argv[], int df_mode); +void clean_args_no_options(int argc, char *argv[], const char * const *usage); int string_is_numerical(const char *str); __attribute__ ((format (printf, 1, 2))) |