changeset 10355:a7be031eb51d HEAD

dsync: Write usage directly to stderr instead of via logging.
author Timo Sirainen <tss@iki.fi>
date Tue, 17 Nov 2009 20:32:35 -0500
parents 22ffa2eb68c0
children ff403fe262e5
files src/dsync/dsync.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/dsync/dsync.c	Tue Nov 17 20:29:48 2009 -0500
+++ b/src/dsync/dsync.c	Tue Nov 17 20:32:35 2009 -0500
@@ -9,6 +9,7 @@
 #include "dsync-worker.h"
 #include "dsync-proxy-server.h"
 
+#include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
 
@@ -56,11 +57,12 @@
 static void ATTR_NORETURN
 usage(void)
 {
-	i_fatal(
+	fprintf(stderr,
 "usage: dsync [-b <mailbox>] [-r] [-u <user>] [-v]\n"
 "  mirror  <command to execute remote dsync>\n"
-"  convert <source mail_location>"
+"  convert <source mail_location>\n"
 );
+	exit(1);
 }
 
 static void