/* -*-c-*-
*
- * $Id: mdwopt.h,v 1.6 1999/05/20 23:00:30 mdw Exp $
+ * $Id: mdwopt.h,v 1.7 1999/08/19 18:35:10 mdw Exp $
*
* Options parsing, similar to GNU @getopt_long@
*
/*----- Revision history --------------------------------------------------*
*
* $Log: mdwopt.h,v $
+ * Revision 1.7 1999/08/19 18:35:10 mdw
+ * Add a couple more flag constants.
+ *
* Revision 1.6 1999/05/20 23:00:30 mdw
* Carry through changes to the interface properly in the documentation.
* Other little formatting things.
/* --- New style flag names --- */
enum {
+ OPTF_NOARG = 0 /* No argument */
OPTF_ARGREQ = 1, /* Required argument */
OPTF_ARGOPT = 2, /* Optional argument */
+ OPTF_ARG = 3, /* Argument type bitmask */
OPTF_SWITCH = 4, /* OR val into flag, don't store */
OPTF_NEGATE = 8 /* Allow long option to be negated */
};