summaryrefslogtreecommitdiff
path: root/popt.h
diff options
context:
space:
mode:
authorjbj <jbj>2000-12-31 20:30:37 +0000
committerjbj <jbj>2000-12-31 20:30:37 +0000
commit5c317e5c54ed6e16d1cfeccf5e20f897a5edbd5c (patch)
treea6cd5dc445f46f967d4165d2b3b4ae9141b20bec /popt.h
parent8f65d3cff4f356bd80797a4038a158aa2b0c619f (diff)
downloadlibpopt-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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/popt.h b/popt.h
index 7a0a6b1..5bae679 100644
--- a/popt.h
+++ b/popt.h
@@ -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 */