diff options
Diffstat (limited to 'cmdutils.h')
-rw-r--r-- | cmdutils.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cmdutils.h b/cmdutils.h index 37fd4d3b67..67126493a4 100644 --- a/cmdutils.h +++ b/cmdutils.h @@ -190,6 +190,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. |