mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-06 10:44:01 +00:00
[common] track if option set failed and print help if so
This commit is contained in:
@@ -51,7 +51,11 @@ struct Option
|
||||
bool (*validator)(struct Option * opt, const char ** error);
|
||||
char * (*toString )(struct Option * opt);
|
||||
StringList (*getValues)(struct Option * opt);
|
||||
void (*printHelp)();
|
||||
|
||||
void (*printHelp)();
|
||||
|
||||
// internal use only
|
||||
bool failed_set;
|
||||
};
|
||||
|
||||
// register an NULL terminated array of options
|
||||
|
Reference in New Issue
Block a user