summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetr Písař <ppisar@redhat.com>2013-03-06 13:10:25 +0100
committerJan Kara <jack@suse.cz>2013-03-13 23:15:01 +0100
commit9384c1c0f8b64535595c89bb2b1a980538c8be43 (patch)
tree97e0c64770577854ceb2df85629f71357225fec2
parent801386a31d0ae47779cf74cbb4f343be346a07db (diff)
Complete quotasync usage
Signed-off-by: Petr Písař <ppisar@redhat.com> Signed-off-by: Jan Kara <jack@suse.cz>
-rw-r--r--quotasync.c19
1 files changed, 17 insertions, 2 deletions
diff --git a/quotasync.c b/quotasync.c
index dd8ade9..cab9015 100644
--- a/quotasync.c
+++ b/quotasync.c
@@ -22,8 +22,23 @@ char *progname;
static void usage(void)
{
- errstr(_("Utility for syncing quotas.\nUsage:\n%s [-ug] -a | mntpoint...\n\n"), progname);
- fprintf(stderr, _("Bugs to %s\n"), MY_EMAIL);
+ printf(_(
+"%1$s: Utility for syncing quotas.\n"
+"Usage: %1$s [-ug] mount-point...\n"
+" or: %1$s [-ug] -a\n"
+" or: %1$s -h | -V\n"
+"\n"
+ ), progname);
+ printf(_(
+"Options:\n"
+"-u, --user synchronize user quotas\n"
+"-g, --group synchronize group quotas\n"
+"-a, --all synchronize quotas for all mounted file systems\n"
+"-h, --help display this help message and exit\n"
+"-V, --version display version information and exit\n"
+"\n"
+ ));
+ printf(_("Report bugs to <%s>.\n"), MY_EMAIL);
exit(1);
}