diff options
author | Karel Zak | 2011-08-16 13:07:30 +0200 |
---|---|---|
committer | Karel Zak | 2011-08-16 13:07:30 +0200 |
commit | 2e49d90f345be4cd6a54b3218aa0339b17a8a558 (patch) | |
tree | 0d474443a832f016e75b5f8bb716f051690901a9 /sys-utils/flock.c | |
parent | fallocate: cleanup usage() (diff) | |
download | kernel-qcow2-util-linux-2e49d90f345be4cd6a54b3218aa0339b17a8a558.tar.gz kernel-qcow2-util-linux-2e49d90f345be4cd6a54b3218aa0339b17a8a558.tar.xz kernel-qcow2-util-linux-2e49d90f345be4cd6a54b3218aa0339b17a8a558.zip |
flock: cleanup usage()
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/flock.c')
-rw-r--r-- | sys-utils/flock.c | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/sys-utils/flock.c b/sys-utils/flock.c index c7fb70e2b..7d321de0d 100644 --- a/sys-utils/flock.c +++ b/sys-utils/flock.c @@ -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); } |