diff options
author | jbj <jbj> | 2000-12-31 20:30:37 +0000 |
---|---|---|
committer | jbj <jbj> | 2000-12-31 20:30:37 +0000 |
commit | 5c317e5c54ed6e16d1cfeccf5e20f897a5edbd5c (patch) | |
tree | a6cd5dc445f46f967d4165d2b3b4ae9141b20bec /popt.h | |
parent | 8f65d3cff4f356bd80797a4038a158aa2b0c619f (diff) | |
download | libpopt-5c317e5c54ed6e16d1cfeccf5e20f897a5edbd5c.tar.gz |
- (popt): add POPT_ARGFLAG_OPTIONAL for long options with optional arg.
- (popt): diddle auto-help to include type of arg expected.
Diffstat (limited to 'popt.h')
-rw-r--r-- | popt.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -37,7 +37,8 @@ extern "C" { #define POPT_ARG_MASK 0x0000FFFF #define POPT_ARGFLAG_ONEDASH 0x80000000 /* allow -longoption */ #define POPT_ARGFLAG_DOC_HIDDEN 0x40000000 /* don't show in help/usage */ -#define POPT_ARGFLAG_STRIP 0x20000000 /* strip this arg from argv (only applies to long args) */ +#define POPT_ARGFLAG_STRIP 0x20000000 /* strip this arg from argv(only applies to long args) */ +#define POPT_ARGFLAG_OPTIONAL 0x10000000 /* arg may be missing */ #define POPT_ARGFLAG_OR 0x08000000 /* arg will be or'ed */ #define POPT_ARGFLAG_NOR 0x09000000 /* arg will be nor'ed */ |