summaryrefslogtreecommitdiffstats
path: root/misc-utils/rename.c
diff options
context:
space:
mode:
authorKarel Zak2011-08-16 12:35:49 +0200
committerKarel Zak2011-08-16 12:36:00 +0200
commitf70e2a11c899bf6f932b741f17beef690ac0d53a (patch)
tree96981634b246ff9accd30ff321a1f35b86df6ab6 /misc-utils/rename.c
parentnamei: cleanup usage() (diff)
downloadkernel-qcow2-util-linux-f70e2a11c899bf6f932b741f17beef690ac0d53a.tar.gz
kernel-qcow2-util-linux-f70e2a11c899bf6f932b741f17beef690ac0d53a.tar.xz
kernel-qcow2-util-linux-f70e2a11c899bf6f932b741f17beef690ac0d53a.zip
rename: cleanup usage()
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'misc-utils/rename.c')
-rw-r--r--misc-utils/rename.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/misc-utils/rename.c b/misc-utils/rename.c
index 6f55b7820..f7c88cdaa 100644
--- a/misc-utils/rename.c
+++ b/misc-utils/rename.c
@@ -61,14 +61,15 @@ static int do_rename(char *from, char *to, char *s, int verbose)
static void __attribute__ ((__noreturn__)) usage(FILE * out)
{
+ fputs(_("\nUsage:\n"), out);
fprintf(out,
- _("Usage: %s [options] expression replacement file...\n"),
+ _(" %s [options] expression replacement file...\n"),
program_invocation_short_name);
- fprintf(out, _("\nOptions:\n"
- " -v, --verbose explain what is being done\n"
- " -V, --version output version information and exit\n"
- " -h, --help display this help and exit\n\n"));
+ fputs(_("\nOptions:\n"), out);
+ fputs(_(" -v, --verbose explain what is being done\n"
+ " -V, --version output version information and exit\n"
+ " -h, --help display this help and exit\n\n"), out);
exit(out == stderr ? EXIT_FAILURE : EXIT_SUCCESS);
}