ocssw
V2022
|
#include <argpar.h>
Public Attributes | |
const char * | name |
int | key |
const char * | arg |
int | flags |
const char * | doc |
int | group |
Detailed Description
Stores the configuration for a par argument.
The easiest way to use this is to create a static array at the top of your program to be passed to the argpar constructor, as shown below.
If the first four fields are 0, the option is considered a new section header and is only used for the automated usage statement.
Terminate the list with an empty struct.
Member Data Documentation
◆ arg
const char* arg |
What to display as the right side of the argument in the usage statement.
If non-zero, this is the name of an argument associated with this option, which must be provided. If zero, it will be automatically determined based on the desired type, which may be modified with the flag argument.
◆ doc
const char* doc |
◆ flags
int flags |
◆ group
int group |
The group associated with this option. If 0 and a documentation option, it is auto-incremented.
The group number is used for display order in the usage statement. The order is 0, 1, 2, ..., n, -m, ..., -2, -1 and options in each group are displayed in the order they are given in the options specified.
◆ key
int key |
◆ name
The documentation for this struct was generated from the following file:
- /gfs-oceanweb/web/ocssw/ocssw_src/oel_util/libgenutils/argpar.h