![]() |
Diffusion C API 6.11.5
|
This structure represents a possible argument to an application. More...
#include <args.h>
Data Fields | |
char | short_arg |
The short form of the argument without the leading dash e.g. | |
const char * | long_arg |
The long form of the argument without the leading double-dash e.g. | |
const char * | description |
A description of the argument used when generating application help text. | |
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. | |
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. | |
This structure represents a possible argument to an application.
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