0713020
From 9384c1c0f8b64535595c89bb2b1a980538c8be43 Mon Sep 17 00:00:00 2001
0713020
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
0713020
Date: Wed, 6 Mar 2013 13:10:25 +0100
0713020
Subject: [PATCH 2/4] Complete quotasync usage
0713020
MIME-Version: 1.0
0713020
Content-Type: text/plain; charset=UTF-8
0713020
Content-Transfer-Encoding: 8bit
0713020
0713020
Signed-off-by: Petr Písař <ppisar@redhat.com>
0713020
Signed-off-by: Jan Kara <jack@suse.cz>
0713020
---
0713020
 quotasync.c | 19 +++++++++++++++++--
0713020
 1 file changed, 17 insertions(+), 2 deletions(-)
0713020
0713020
diff --git a/quotasync.c b/quotasync.c
0713020
index dd8ade9..cab9015 100644
0713020
--- a/quotasync.c
0713020
+++ b/quotasync.c
0713020
@@ -22,8 +22,23 @@ char *progname;
0713020
 
0713020
 static void usage(void)
0713020
 {
0713020
-	errstr(_("Utility for syncing quotas.\nUsage:\n%s [-ug] -a | mntpoint...\n\n"), progname);
0713020
-	fprintf(stderr, _("Bugs to %s\n"), MY_EMAIL);
0713020
+	printf(_(
0713020
+"%1$s: Utility for syncing quotas.\n"
0713020
+"Usage: %1$s [-ug] mount-point...\n"
0713020
+"   or: %1$s [-ug] -a\n"
0713020
+"   or: %1$s -h | -V\n"
0713020
+"\n"
0713020
+		), progname);
0713020
+	printf(_(
0713020
+"Options:\n"
0713020
+"-u, --user     synchronize user quotas\n"
0713020
+"-g, --group    synchronize group quotas\n"
0713020
+"-a, --all      synchronize quotas for all mounted file systems\n"
0713020
+"-h, --help     display this help message and exit\n"
0713020
+"-V, --version  display version information and exit\n"
0713020
+"\n"
0713020
+		));
0713020
+	printf(_("Report bugs to <%s>.\n"), MY_EMAIL);
0713020
 	exit(1);
0713020
 }
0713020
 
0713020
-- 
0713020
1.8.1.4
0713020