Mercurial > dovecot > core-2.2
changeset 9980:22276a4717ca HEAD
master: Added --help option
author | Pascal Volk <user@localhost.localdomain.org> |
---|---|
date | Wed, 07 Oct 2009 16:48:49 +0000 |
parents | 26588f1b0870 |
children | 1aff70cee4d9 |
files | src/master/main.c |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/master/main.c Wed Oct 07 12:28:29 2009 -0400 +++ b/src/master/main.c Wed Oct 07 16:48:49 2009 +0000 @@ -491,8 +491,8 @@ { fprintf(stderr, "Usage: dovecot [-F] [-c <config file>] [-p] [-n] [-a]\n" -" [-cb <config binary path>] [--version] [--build-options] [--log-error]\n" -" [reload] [stop]\n"); +" [-cb <config binary path>] [--help] [--version]\n" +" [--build-options] [--log-error] [reload] [stop]\n"); } static void print_build_options(void) @@ -679,6 +679,9 @@ } else if (strcmp(argv[optind], "--log-error") == 0) { log_error = TRUE; foreground = TRUE; + } else if (strcmp(argv[optind], "--help") == 0) { + print_help(); + return 0; } else if (strcmp(argv[optind], "reload") == 0) { send_signal = SIGHUP; } else if (strcmp(argv[optind], "stop") == 0) {