From 33402f6f799b53ff6ae910f6e94977daa75cf27d Mon Sep 17 00:00:00 2001 From: Nick White Date: Tue, 13 May 2008 21:09:31 +0100 Subject: Added quiet option --- src/getht.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/getht.c') 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; -- cgit v1.2.3