Diffusion C API
6.10.0
|
This structure represents a possible argument to an application. More...
Data Fields | |
char | short_arg |
The short form of the argument without the leading dash e.g. More... | |
const char * | long_arg |
The long form of the argument without the leading double-dash e.g. More... | |
const char * | description |
A description of the argument used when generating application help text. More... | |
int | required |
If non-zero (ARG_REQUIRED), this argument is mandatory. | |
int | has_value |
If non-zero (ARG_HAS_VALUE), this argument is followed by a value to be captured and associated with it. More... | |
const char * | default_value |
If an argument is optional but not provided, and this is non-NULL, then it is used as that argument's value. More... | |
This structure represents a possible argument to an application.
const char* arg_opts_s::default_value |
If an argument is optional but not provided, and this is non-NULL, then it is used as that argument's value.
const char* arg_opts_s::description |
A description of the argument used when generating application help text.
int arg_opts_s::has_value |
If non-zero (ARG_HAS_VALUE), this argument is followed by a value to be captured and associated with it.
const char* arg_opts_s::long_arg |
The long form of the argument without the leading double-dash e.g.
–help
char arg_opts_s::short_arg |
The short form of the argument without the leading dash e.g.
-x, -h