ocssw
V2022
|
argpar-params.c
Go to the documentation of this file.
51 argpar params_parent = { options_parent, parse_options_parent, args_doc_parent, doc_parent, children };
56 argpar_program_name, "parfile=parfiles/initial.par", "ofile=keyarg_ofile1", "parfile=parfiles/final.par",
64 int ret = argpar_parse_args(¶ms, argc, argv, ARGPAR_STORE_PARAMS | ARGPAR_NO_EXIT, NULL, NULL);
Master structure containing options, document strings, child parsers, and text filters....
Definition: argpar.h:398
#define OPTION_INT
Cast this option as a long. The value and any error will be reflected in the argpar_state struct duri...
Definition: argpar.h:160
#define OPTION_ATTR
This option serves to document additional attributes for an option. These are hidden from the normal ...
Definition: argpar.h:183
int state(double tjdTDB, JPLIntUtilType *util, double posvel[13][6], double *pnut)
#define OPTION_ENUM
This option serves to document a valid value for an option. This is not enforced by argpar.
Definition: argpar.h:179
#define ARGPAR_NO_EXIT
Passed to the argpar_parse_ functions, this tells argpar not to call exit after printing help/usage,...
Definition: argpar.h:132
char * strdup(const char *)
int argpar_parse_args(argpar *p, unsigned argc, char *argv[], unsigned flags, unsigned *end_index, void *input)
Parse an array of key=value pairs and/or key arguments.
Definition: argpar.c:679
#define ARGPAR_STORE_PARAMS
Passed to the argpar_parse_ functions, this tells argpar to create a special parser that stores all p...
Definition: argpar.h:141
#define OPTION_ALIAS
Do not add an extra newline after this documentation string. Useful for lists and manual formatting.
Definition: argpar.h:175
#define OPTION_DOC
This option isn't actually an option, merely text for the usage summary.
Definition: argpar.h:152
State variable to be filled before each call to the parser callback.
Definition: argpar.h:196
Library for reading command-line arguments in the form of key=value.
#define OPTION_DBL
Cast this option as a double. The value and any error will be reflected in the argpar_state struct du...
Definition: argpar.h:156