diff options
Diffstat (limited to 'examples/args.h')
-rw-r--r-- | examples/args.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/args.h b/examples/args.h index b08a534f3..2c68bdb8b 100644 --- a/examples/args.h +++ b/examples/args.h @@ -8,6 +8,7 @@ struct args_info { int argc; char **argv; int pos; + int opts_done : 1; /**< Did we see a -- separator */ }; #define ARGS_INFO_INIT { argc, argv, 0, 0 } #define ARGS_CURRENT(args) args->argv[args->pos] @@ -76,4 +77,9 @@ extern int match_int_arg( */ extern int match_bool_arg(int *out, struct args_info *args, const char *opt); +/** + * Check if we're processing past the single -- separator + */ +extern int match_arg_separator(struct args_info *args); + #endif |