diff options
author | Denys Vlasenko <dvlasenk@redhat.com> | 2010-12-03 18:56:33 +0100 |
---|---|---|
committer | Denys Vlasenko <dvlasenk@redhat.com> | 2010-12-03 18:56:33 +0100 |
commit | 3ea8cd037dcd5a8439baceadc8df70664eff701c (patch) | |
tree | 666eeca05e2b1c77bd5d0a117e2003f206b19183 /src/cli/CLI.cpp | |
parent | 3433c06718591fe930b9ae99501d0aa0f52b3f9c (diff) | |
download | abrt-3ea8cd037dcd5a8439baceadc8df70664eff701c.tar.gz abrt-3ea8cd037dcd5a8439baceadc8df70664eff701c.tar.xz abrt-3ea8cd037dcd5a8439baceadc8df70664eff701c.zip |
preparatory patch: add -v to abrt-cli; remove unused func; make func static
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'src/cli/CLI.cpp')
-rw-r--r-- | src/cli/CLI.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cli/CLI.cpp b/src/cli/CLI.cpp index 44271329..64d629b8 100644 --- a/src/cli/CLI.cpp +++ b/src/cli/CLI.cpp @@ -210,6 +210,7 @@ static const struct option longopts[] = { /* name, has_arg, flag, val */ { "help" , no_argument, NULL, '?' }, + { "verbose" , no_argument, NULL, 'v' }, { "version" , no_argument, NULL, 'V' }, { "list" , no_argument, NULL, 'l' }, { "full" , no_argument, NULL, 'f' }, @@ -243,6 +244,7 @@ static void usage(char *argv0) printf(_("Usage: %s [OPTION]\n\n" "Startup:\n" " -V, --version display the version of %s and exit\n" + " -v, --verbose increase verbosity\n" " -?, --help print this help\n\n" "Actions:\n" " -l, --list print a list of all crashes which are not yet reported\n" @@ -278,8 +280,7 @@ int main(int argc, char** argv) while (1) { /* Do not use colons, arguments are handled after parsing all options. */ - int c = getopt_long_only(argc, argv, "?Vrdlfyib", - longopts, NULL); + int c = getopt_long(argc, argv, "?Vvrdlfyib", longopts, NULL); #define SET_OP(newop) \ if (op != -1 && op != newop) \ @@ -298,6 +299,7 @@ int main(int argc, char** argv) case 'f': full = true; break; case 'y': always = true; break; case 'b': backtrace = true; break; + case 'v': g_verbose++; break; case -1: /* end of options */ break; default: /* some error */ case '?': |