You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Where long_name and short_name can be NULL or empty (\0) to have the short or long flag undefined)
When the flag is a short flag, the parser should allow using multiple short flags together so -f and -a could be used together like this: -fa (this matches the behavior of getopts)
The text was updated successfully, but these errors were encountered:
RaphGL
changed the title
add ability to define short, long flags and combine short flags
flag: add ability to define short, long flags and combine short flags
Sep 5, 2024
Modify library to distinguish between long and short flags.
for example
flag_int
should have the following signature:Where
long_name
andshort_name
can be NULL or empty (\0) to have the short or long flag undefined)When the flag is a short flag, the parser should allow using multiple short flags together so
-f
and-a
could be used together like this:-fa
(this matches the behavior of getopts)The text was updated successfully, but these errors were encountered: