diff options
| author | Denys Vlasenko <dvlasenk@redhat.com> | 2010-11-02 12:38:30 +0100 |
|---|---|---|
| committer | Denys Vlasenko <dvlasenk@redhat.com> | 2010-11-02 12:38:30 +0100 |
| commit | 3c8781e79c38961c47fc0683a4eaf665b835153c (patch) | |
| tree | 234611d66be82ace3fe7276dd162d07593294bcd /lib/utils/parse_options.h | |
| parent | 8864e7d8ab05b59372f55ec8d637296aefa1515e (diff) | |
abrt-handle-crashdump: add -l[pfx] option to list possible events
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'lib/utils/parse_options.h')
| -rw-r--r-- | lib/utils/parse_options.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/utils/parse_options.h b/lib/utils/parse_options.h index f44f29b1..105f081c 100644 --- a/lib/utils/parse_options.h +++ b/lib/utils/parse_options.h @@ -12,6 +12,7 @@ enum parse_opt_type { OPTION_GROUP, OPTION_STRING, OPTION_INTEGER, + OPTION_OPTSTRING, OPTION_END, }; @@ -31,11 +32,12 @@ struct options { * a - argh argument help * h - help */ -#define OPT_END() { OPTION_END } -#define OPT_BOOL(s, l, v, h) { OPTION_BOOL, (s), (l), (v), NULL, (h) } -#define OPT_GROUP(h) { OPTION_GROUP, 0, NULL, NULL, NULL, (h) } -#define OPT_INTEGER(s, l, v, h) { OPTION_INTEGER, (s), (l), (v), "n", (h) } -#define OPT_STRING(s, l, v, a, h) { OPTION_STRING, (s), (l), (v), (a), (h) } +#define OPT_END() { OPTION_END } +#define OPT_BOOL(s, l, v, h) { OPTION_BOOL, (s), (l), (v), NULL, (h) } +#define OPT_GROUP(h) { OPTION_GROUP, 0, NULL, NULL, NULL, (h) } +#define OPT_INTEGER(s, l, v, h) { OPTION_INTEGER, (s), (l), (v), "n", (h) } +#define OPT_STRING(s, l, v, a, h) { OPTION_STRING, (s), (l), (v), (a), (h) } +#define OPT_OPTSTRING(s, l, v, a, h) { OPTION_OPTSTRING, (s), (l), (v), (a), (h) } #define OPT__VERBOSE(v) OPT_BOOL('v', "verbose", (v), "be verbose") |
