summaryrefslogtreecommitdiff
path: root/cmdutils.h
diff options
context:
space:
mode:
Diffstat (limited to 'cmdutils.h')
-rw-r--r--cmdutils.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/cmdutils.h b/cmdutils.h
index a4716cad61..f0c9079647 100644
--- a/cmdutils.h
+++ b/cmdutils.h
@@ -152,6 +152,13 @@ void parse_options(void *optctx, int argc, char **argv, const OptionDef *options
void (* parse_arg_function)(void *optctx, const char*));
/**
+ * Parse one given option.
+ *
+ * @return on success 1 if arg was consumed, 0 otherwise; negative number on error
+ */
+int parse_option(void *optctx, const char *opt, const char *arg, const OptionDef *options);
+
+/**
* Check if the given stream matches a stream specifier.
*
* @param s Corresponding format context.