diff options
author | Nick White <git@njw.me.uk> | 2008-05-13 21:09:31 +0100 |
---|---|---|
committer | Nick White <git@njw.me.uk> | 2008-05-13 21:09:31 +0100 |
commit | 33402f6f799b53ff6ae910f6e94977daa75cf27d (patch) | |
tree | 59ed70b710ae5442b3f8a44a37a1af8a52e7b01c /src/getht.c | |
parent | 36069abef781f205fa7493babdc84262af18512f (diff) |
Added quiet option
Diffstat (limited to 'src/getht.c')
-rw-r--r-- | src/getht.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/getht.c b/src/getht.c index ec90f0b..8f52d6f 100644 --- a/src/getht.c +++ b/src/getht.c @@ -39,6 +39,7 @@ int main(int argc, char *argv[]) /* initialise appropriate options vars */ options.startup_check = 0; + options.quiet = 0; options.verbose = 0; options.proxy.type = 0; options.proxy.auth = 0; @@ -91,13 +92,14 @@ int main(int argc, char *argv[]) {"download-issue", required_argument, 0, 'd'}, {"force", no_argument, 0, 'f'}, {"list-issues", no_argument, 0, 'l'}, + {"quiet", no_argument, 0, 'q'}, {"update", no_argument, 0, 'u'}, {"help", no_argument, 0, 'h'}, {"verbose", no_argument, 0, 'v'}, {"version", no_argument, 0, 'V'}, {0, 0, 0, 0} }; - while((c = getopt_long(argc, argv, "ad:fhlmn:osuvVx:t:", long_opts, NULL)) != -1) { + while((c = getopt_long(argc, argv, "ad:fhluqvV", long_opts, NULL)) != -1) { switch(c) { case 'a': downall = 1; @@ -125,6 +127,10 @@ int main(int argc, char *argv[]) showusage(); return 0; break; + case 'q': + options.quiet = 1; + option = 1; + break; case 'v': options.verbose++; option = 1; |