9 #ifndef __ZEDA_OPTION_H__ 10 #define __ZEDA_OPTION_H__ 149 #define Z_INTRANGE_BORDER (-1) 213 # define zIsOption(o) \ 214 ( ( (o)[0] == '-' || (o)[0] == '/' ) && !isdigit( (o)[1] ) && (o)[1] != '-' ) 216 #define zIsOption(o) \ 217 ( ( (o)[0] == '-' ) && !isdigit( (o)[1] ) && (o)[1] != '-' ) const char * longkey
Definition: zeda_option.h:62
command line option information.
Definition: zeda_option.h:60
char * zGetArg(char ***argv)
get the next command line argument.
#define __END_DECLS
Definition: zeda_defs.h:30
const char * desc
Definition: zeda_option.h:64
void zParseIntRange(char *expr, int *from, int *to)
parse integer range notation.
void zOptionDiag(zOption *opts)
diagnose option flags.
bool zOptionRead(zOption *opts, char **argv, zStrAddrList *arglist)
read command line options.
bool flag
Definition: zeda_option.h:66
void zOptionHelp(zOption *opts)
display a command line help.
#define __BEGIN_DECLS
Definition: zeda_defs.h:26
char * arg
Definition: zeda_option.h:65
#define __EXPORT
Definition: zeda_compat.h:32
const char * arg_guide
Definition: zeda_option.h:63
const char * key
Definition: zeda_option.h:61
Definition: zeda_strlist.h:23