From 0a86cf57e3495d6f7c7d8565492e02b9c1276326 Mon Sep 17 00:00:00 2001 From: sin Date: Fri, 10 Mar 2017 13:32:49 +0000 Subject: Implement quiet mode --- ratox.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'ratox.c') diff --git a/ratox.c b/ratox.c index d767630..2130916 100644 --- a/ratox.c +++ b/ratox.c @@ -2293,7 +2293,7 @@ toxshutdown(void) static void usage(void) { - eprintf("usage: %s [-4|-6] [-E|-e] [-T|-t] [-P|-p] [savefile]\n", argv0); + eprintf("usage: %s [-4|-6] [-E|-e] [-T|-t] [-P|-p] [-q] [savefile]\n", argv0); } int @@ -2324,6 +2324,9 @@ main(int argc, char *argv[]) case 'p': proxy = 0; break; + case 'q': + quiet = 1; + break; default: usage(); } ARGEND; @@ -2341,7 +2344,8 @@ main(int argc, char *argv[]) signal(SIGTERM, initshutdown); signal(SIGPIPE, SIG_IGN); - printrat(); + if (!quiet) + printrat(); toxinit(); localinit(); friendload(); -- cgit v1.2.3