summaryrefslogtreecommitdiff
path: root/cmdutils.h
diff options
context:
space:
mode:
Diffstat (limited to 'cmdutils.h')
-rw-r--r--cmdutils.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/cmdutils.h b/cmdutils.h
index ae7a87a1a0..26cd96a131 100644
--- a/cmdutils.h
+++ b/cmdutils.h
@@ -207,6 +207,12 @@ int parse_option(void *optctx, const char *opt, const char *arg,
void parse_loglevel(int argc, char **argv, const OptionDef *options);
/**
+ * Return index of option opt in argv or 0 if not found.
+ */
+int locate_option(int argc, char **argv, const OptionDef *options,
+ const char *optname);
+
+/**
* Check if the given stream matches a stream specifier.
*
* @param s Corresponding format context.