Refactor how options are handled
This commit is contained in:
parent
1a11bb768f
commit
327e738a55
6 changed files with 112 additions and 98 deletions
|
|
@ -30,7 +30,7 @@ struct if_option {
|
|||
const char *long_opt_desc;
|
||||
const char *desc;
|
||||
bool require_argument;
|
||||
void (*const handle)(int short_opt, const struct if_option *opt, const char *opt_arg, const struct if_applet *applet);
|
||||
void (*const handle)(const char *opt_arg);
|
||||
};
|
||||
|
||||
struct if_option_group {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue