diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/optparse.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/optparse.h b/include/optparse.h index 816b192..70e4318 100644 --- a/include/optparse.h +++ b/include/optparse.h @@ -8,9 +8,12 @@ #include "__u8view.h" struct optparse { - int optind, subopt; + bool _b; + int _subopt; + char **_argv; + + int optind; char errmsg[128]; - char **argv; struct u8view optarg; }; @@ -27,6 +30,6 @@ struct op_option { }; rune optparse(struct optparse *, const struct op_option *, size_t); -void optparse_init(struct optparse *, char **); +struct optparse mkoptparser(char **); #endif /* !MLIB_OPTPARSE_H */ |