Go to the source code of this file.
◆ GWEN_ARGS_FLAGS_HAS_ARGUMENT
#define GWEN_ARGS_FLAGS_HAS_ARGUMENT 0x00000001 |
◆ GWEN_ARGS_FLAGS_HELP
#define GWEN_ARGS_FLAGS_HELP 0x00000004 |
◆ GWEN_ARGS_FLAGS_LAST
#define GWEN_ARGS_FLAGS_LAST 0x00000002 |
◆ GWEN_ARGS_MODE_ALLOW_FREEPARAM
#define GWEN_ARGS_MODE_ALLOW_FREEPARAM 0x00000001 |
◆ GWEN_ARGS_MODE_STOP_AT_FREEPARAM
#define GWEN_ARGS_MODE_STOP_AT_FREEPARAM 0x00000002 |
◆ GWEN_ARGS_RESULT_ERROR
#define GWEN_ARGS_RESULT_ERROR (-1) |
◆ GWEN_ARGS_RESULT_HELP
#define GWEN_ARGS_RESULT_HELP (-2) |
◆ GWEN_ARGS
Definition at line 1 of file args.h.
◆ GWEN_ARGS_OUTTYPE
Enumerator |
---|
GWEN_ArgsOutType_Txt | |
GWEN_ArgsOutType_Html | |
Definition at line 67 of file args.h.
◆ GWEN_ARGS_TYPE
Enumerator |
---|
GWEN_ArgsType_Char | |
GWEN_ArgsType_Int | |
Definition at line 61 of file args.h.
◆ GWEN_Args_Check()
This function parses the given argument list. Known options are stored within the given DB under their respective name. Free parameters (which are arguments without leading "-"'s) are stored in the variable "params" of the given db.
◆ GWEN_Args_ShortUsage()
Currently unimplemented; does nothing and returns zero.
◆ GWEN_Args_Usage()
Print a "usage" message into the given GWEN_BUFFER ubuf
. The message lists all available options. The GWEN_ARGS_OUTTYPE argument is supposed to offer either text or html as output format, but currently only text is implemented.