Add a --quiet command-line option

--quiet will suppress all log lines except FATAL.  Conceptually it's
exclusive with --verbose, but this isn't checked - last one wins.
This commit is contained in:
Alex Young
2012-07-12 14:45:55 +01:00
parent 10b46beeea
commit c6a084ce82
3 changed files with 64 additions and 15 deletions

View File

@@ -63,6 +63,13 @@ void mode(char* mode, int argc, char **argv);
# define SOPT_VERBOSE ""
#endif
#define OPT_QUIET "quiet"
#define SOPT_QUIET "q"
#define GETOPT_QUIET GETOPT_FLAG( OPT_QUIET, 'q' )
#define QUIET_LINE \
"\t--" OPT_QUIET ",-" SOPT_QUIET "\t\tOutput only fatal informatio.\n"
#define HELP_LINE \
"\t--" OPT_HELP ",-h \tThis text.\n"
#define SOCK_LINE \