diff options
author | Nikola Pajkovsky <npajkovs@redhat.com> | 2010-10-05 15:46:44 +0200 |
---|---|---|
committer | Nikola Pajkovsky <npajkovs@redhat.com> | 2010-10-05 16:34:54 +0200 |
commit | 3f5c913bb2c534705b883edb813e36d5c72768da (patch) | |
tree | a6986c3388b6c283b9d072068b3d1ea8e05f4c90 | |
parent | 7f360308d992b6c7c1694b165959ee6c516e289d (diff) | |
download | abrt-3f5c913bb2c534705b883edb813e36d5c72768da.tar.gz abrt-3f5c913bb2c534705b883edb813e36d5c72768da.tar.xz abrt-3f5c913bb2c534705b883edb813e36d5c72768da.zip |
add OPT__HELP macro
Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
-rw-r--r-- | lib/utils/parse_options.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/utils/parse_options.h b/lib/utils/parse_options.h index f8a6545a..53a547d6 100644 --- a/lib/utils/parse_options.h +++ b/lib/utils/parse_options.h @@ -36,6 +36,7 @@ struct options { #define OPT_STRING(s, l, v, a, h) { OPTION_STRING, (s), (l), (v), (a), (h) } #define OPT__VERBOSE(v) OPT_BOOL('v', "verbose", (v), "be verbose") +#define OPT__HELP(v) OPT_BOOL('h', "help", (v), "show this help message") void parse_opts(int argc, char **argv, const struct options *opt, const char * const usage[]); |