dovecot-2.0: doveadm: -s was already used by some mailbox comman...

dovecot at dovecot.org dovecot at dovecot.org
Wed Nov 24 20:56:52 EET 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/17a67be8edb5
changeset: 12470:17a67be8edb5
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Nov 24 18:56:48 2010 +0000
description:
doveadm: -s was already used by some mailbox commands, renamed to -S.
Also added -S to usage output.

diffstat:

 src/doveadm/doveadm-mail.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (33 lines):

diff -r a9bf33946acf -r 17a67be8edb5 src/doveadm/doveadm-mail.c
--- a/src/doveadm/doveadm-mail.c	Wed Nov 24 17:20:33 2010 +0000
+++ b/src/doveadm/doveadm-mail.c	Wed Nov 24 18:56:48 2010 +0000
@@ -380,7 +380,7 @@
 		case 'A':
 			ctx->iterate_all_users = TRUE;
 			break;
-		case 's':
+		case 'S':
 			doveadm_settings->doveadm_socket_path = optarg;
 			if (doveadm_settings->doveadm_worker_count == 0)
 				doveadm_settings->doveadm_worker_count = 1;
@@ -504,7 +504,8 @@
 	const struct doveadm_mail_cmd *cmd;
 
 	array_foreach(&doveadm_mail_cmds, cmd) {
-		str_printfa(out, "%s\t[-u <user>|-A]", cmd->name);
+		str_printfa(out, "%s\t[-u <user>|-A] [-S <socket_path>]",
+			    cmd->name);
 		if (cmd->usage_args != NULL)
 			str_printfa(out, " %s", cmd->usage_args);
 		str_append_c(out, '\n');
@@ -513,8 +514,8 @@
 
 void doveadm_mail_help(const struct doveadm_mail_cmd *cmd)
 {
-	fprintf(stderr, "doveadm %s [-u <user>|-A] %s\n", cmd->name,
-		cmd->usage_args == NULL ? "" : cmd->usage_args);
+	fprintf(stderr, "doveadm %s [-u <user>|-A] [-S <socket_path>] %s\n",
+		cmd->name, cmd->usage_args == NULL ? "" : cmd->usage_args);
 	exit(1);
 }
 


More information about the dovecot-cvs mailing list