diff options
author | Karel Zak <kzak@redhat.com> | 2011-08-16 12:35:49 +0200 |
---|---|---|
committer | Karel Zak <kzak@redhat.com> | 2011-08-16 12:36:00 +0200 |
commit | f70e2a11c899bf6f932b741f17beef690ac0d53a (patch) | |
tree | 96981634b246ff9accd30ff321a1f35b86df6ab6 | |
parent | 54f0728944927d919135e1c0af8953206ddcc569 (diff) | |
download | util-linux-f70e2a11c899bf6f932b741f17beef690ac0d53a.tar.gz |
rename: cleanup usage()
Signed-off-by: Karel Zak <kzak@redhat.com>
-rw-r--r-- | misc-utils/rename.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/misc-utils/rename.c b/misc-utils/rename.c index 6f55b782..f7c88cda 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); } |