|
@@ -104,6 +104,8 @@ struct option {
|
|
|
{ .type = OPTION_CALLBACK, .short_name = (s), .long_name = (l), .value = (v), .argh = "time", .help = (h), .callback = parse_opt_approxidate_cb }
|
|
|
#define OPT_CALLBACK(s, l, v, a, h, f) \
|
|
|
{ .type = OPTION_CALLBACK, .short_name = (s), .long_name = (l), .value = (v), (a), .help = (h), .callback = (f) }
|
|
|
+#define OPT_CALLBACK_NOOPT(s, l, v, a, h, f) \
|
|
|
+ { .type = OPTION_CALLBACK, .short_name = (s), .long_name = (l), .value = (v), (a), .help = (h), .callback = (f), .flags = PARSE_OPT_NOARG }
|
|
|
#define OPT_CALLBACK_DEFAULT(s, l, v, a, h, f, d) \
|
|
|
{ .type = OPTION_CALLBACK, .short_name = (s), .long_name = (l), .value = (v), (a), .help = (h), .callback = (f), .defval = (intptr_t)d, .flags = PARSE_OPT_LASTARG_DEFAULT }
|
|
|
|