]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
rename: cleanup usage()
authorKarel Zak <kzak@redhat.com>
Tue, 16 Aug 2011 10:35:49 +0000 (12:35 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 16 Aug 2011 10:36:00 +0000 (12:36 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/rename.c

index 6f55b7820710b6f8b05e65969eb9c68ed8ff4737..f7c88cdaa188148ff17eee53ff4de3f501710fb7 100644 (file)
@@ -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);
 }