path: root/utils.h
diff options
authorDavid Sterba <>2016-01-14 10:30:35 +0100
committerDavid Sterba <>2016-01-14 11:07:10 +0100
commita6cc8ea10ad84e4b7d1303ed048e644f0dd7ae04 (patch)
tree028fb30b5e2bcaac84f849b441ca9c3284371fe7 /utils.h
parentc26dc1ef339c373c59a7c1626bb21d64811476ee (diff)
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 <>
Diffstat (limited to 'utils.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/utils.h b/utils.h
index e522a8c3..d53357a2 100644
--- a/utils.h
+++ b/utils.h
@@ -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)))