Describes a single command-line argument flag. More...
#include <picofuse/sys.h>
Data Fields | |
| const char * | long_name |
| Name of the argument flag. | |
| const char * | short_name |
| Short name or single-character alias for the argument flag. More... | |
| sys_env_arg_type_t | type |
| Expected value type for the argument flag. | |
| const char * | value |
| Default value, or the matched value after a successful parse. More... | |
Describes a single command-line argument flag.
On input to sys_env_arg_parse(), long_name/short_name/type describe the flag to look for, and value holds its default. On return, value holds the matched argument's value if the flag was present on the command line, or is left untouched at its default otherwise.
| const char* sys_env_arg_flag_t::short_name |
| const char* sys_env_arg_flag_t::value |