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

index 5faf2f0478a7e13d69df4c2c3de0a05d2455c8dd..2a98bc8be8b386b2fc642f9a255e944f5edf0e2c 100644 (file)
@@ -30,14 +30,15 @@ extern int optind;
 
 static void __attribute__ ((__noreturn__)) usage(FILE * out)
 {
-       fprintf(out, _("Usage: %s [options]\n"),
-               program_invocation_short_name);
+       fputs(_("\nUsage:\n"), out);
+       fprintf(out,
+             _(" %s [options]\n"), program_invocation_short_name);
 
-       fprintf(out, _("\nOptions:\n"
-                      " -r, --random     generate random-based uuid\n"
-                      " -t, --time       generate time-based uuid\n"
-                      " -V, --version    output version information and exit\n"
-                      " -h, --help       display this help and exit\n\n"));
+       fputs(_("\nOptions:\n"), out);
+       fputs(_(" -r, --random     generate random-based uuid\n"
+               " -t, --time       generate time-based uuid\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);
 }