]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
flock: cleanup usage()
authorKarel Zak <kzak@redhat.com>
Tue, 16 Aug 2011 11:07:30 +0000 (13:07 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 16 Aug 2011 11:07:30 +0000 (13:07 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/flock.c

index c7fb70e2baffcd383d08819e3514fac135a27173..7d321de0d9a00abca5d3bac53ce18239ae1d0f4d 100644 (file)
@@ -62,21 +62,22 @@ const char *program;
 
 static void usage(int ex)
 {
-  fputs("flock (" PACKAGE_STRING ")\n", stderr);
+  fputs(_("\nUsage:\n"), stderr);
   fprintf(stderr,
-       _("Usage: %1$s [-sxun][-w #] fd#\n"
-         "       %1$s [-sxon][-w #] file [-c] command...\n"
-         "       %1$s [-sxon][-w #] directory [-c] command...\n"
-         "  -s  --shared     Get a shared lock\n"
-         "  -x  --exclusive  Get an exclusive lock\n"
-         "  -u  --unlock     Remove a lock\n"
-         "  -n  --nonblock   Fail rather than wait\n"
-         "  -w  --timeout    Wait for a limited amount of time\n"
-         "  -o  --close      Close file descriptor before running command\n"
-         "  -c  --command    Run a single command string through the shell\n"
-         "  -h  --help       Display this text\n"
-         "  -V  --version    Display version\n"),
-         program);
+       _(" %1$s [-sxun][-w #] fd#\n"
+         " %1$s [-sxon][-w #] file [-c] command...\n"
+         " %1$s [-sxon][-w #] directory [-c] command...\n"), program);
+
+  fputs(_("\nOptions:\n"), stderr);
+  fputs(_(" -s  --shared     Get a shared lock\n"
+         " -x  --exclusive  Get an exclusive lock\n"
+         " -u  --unlock     Remove a lock\n"
+         " -n  --nonblock   Fail rather than wait\n"
+         " -w  --timeout    Wait for a limited amount of time\n"
+         " -o  --close      Close file descriptor before running command\n"
+         " -c  --command    Run a single command string through the shell\n"
+         " -h  --help       Display this text\n"
+         " -V  --version    Display version\n\n"), stderr);
   exit(ex);
 }