From e7e3fdba9fdab66e15a63cbbf2c19d7241649713 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Tue, 28 Jan 2014 18:00:25 +0100 Subject: [PATCH] Opt: Document CT_USER with optional values --- ucw/opt.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ucw/opt.h b/ucw/opt.h index 38046136..aea225a2 100644 --- a/ucw/opt.h +++ b/ucw/opt.h @@ -192,7 +192,8 @@ struct opt_item { /** * An option with user-defined syntax. @ttype is a <> - * describing the syntax, @target is a variable of the corresponding type. + * describing the syntax, @target is a variable of the corresponding type. If the @OPT_REQUIRED_VALUE + * flag is not set, the parser must be able to parse a NULL value. **/ #define OPT_USER(shortopt, longopt, target, ttype, fl, desc) { .letter = shortopt, .name = longopt, .ptr = &target, .u.utype = &ttype, .flags = fl, .help = desc, .cls = OPT_CL_STATIC, .type = CT_USER } -- 2.39.5