summaryrefslogtreecommitdiffstats
path: root/src/lib/parse_options.c
diff options
context:
space:
mode:
authorDenys Vlasenko <dvlasenk@redhat.com>2011-01-20 20:39:22 +0100
committerDenys Vlasenko <dvlasenk@redhat.com>2011-01-20 20:39:22 +0100
commit3380e13c62e1b7a8309423f4eccfb4b6cbaa0310 (patch)
treed73aafad96da8d6390631a100853c30aee257d9c /src/lib/parse_options.c
parente3d48ee0458f1d0078da65bad99804d2ba58aaf0 (diff)
downloadabrt-3380e13c62e1b7a8309423f4eccfb4b6cbaa0310.tar.gz
abrt-3380e13c62e1b7a8309423f4eccfb4b6cbaa0310.tar.xz
abrt-3380e13c62e1b7a8309423f4eccfb4b6cbaa0310.zip
Remove unused OPTION_GROUP
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'src/lib/parse_options.c')
-rw-r--r--src/lib/parse_options.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/lib/parse_options.c b/src/lib/parse_options.c
index 6f022551..bcec7869 100644
--- a/src/lib/parse_options.c
+++ b/src/lib/parse_options.c
@@ -28,22 +28,13 @@ void show_usage_and_die(const char *usage, const struct options *opt)
{
fprintf(stderr, _("Usage: %s\n"), usage);
- if (opt->type != OPTION_GROUP)
- fputc('\n', stderr);
+ fputc('\n', stderr);
for (; opt->type != OPTION_END; opt++)
{
size_t pos;
int pad;
- if (opt->type == OPTION_GROUP)
- {
- fputc('\n', stderr);
- if (*opt->help)
- fprintf(stderr, "%s\n", opt->help);
- continue;
- }
-
pos = fprintf(stderr, " ");
if (opt->short_name)
pos += fprintf(stderr, "-%c", opt->short_name);
@@ -119,7 +110,6 @@ unsigned parse_opts(int argc, char **argv, const struct options *opt,
if (opt[ii].short_name)
strbuf_append_strf(shortopts, "%c::", opt[ii].short_name);
break;
- case OPTION_GROUP:
case OPTION_END:
break;
}
@@ -185,7 +175,6 @@ unsigned parse_opts(int argc, char **argv, const struct options *opt,
if (optarg)
*(char**)opt[ii].value = (char*)optarg;
break;
- case OPTION_GROUP:
case OPTION_END:
break;
}