]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
mkfs: indicate that specifying fs-type and fs-options are independent
authorBenno Schulenberg <bensberg@justemail.net>
Tue, 22 Jan 2013 10:56:58 +0000 (11:56 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 30 Jan 2013 14:23:59 +0000 (15:23 +0100)
Also standardize and improve the help text, and slice it into strips
for ease of later translation maintenance.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
disk-utils/mkfs.8
disk-utils/mkfs.c

index af9304bc75ba33e5a033bbf26e2bedf9d7b17635..a4cdf71cb4318203398511e1d2cdb18b98120ef5 100644 (file)
@@ -7,7 +7,7 @@ mkfs \- build a Linux filesystem
 .B mkfs
 .RI [ options ]
 .RB [ \-t
-.IR "type fs-options" ] " device " [ size ]
+.IR type "] [" fs-options ] " device " [ size ]
 .SH DESCRIPTION
 .B mkfs
 is used to build a Linux filesystem on a device, usually
index 55506c0559c6ff43097e42b474b0d3c5beaea6e6..c34f9f61bb349b59ee54031ae4ee0e10c8a3c71b 100644 (file)
 
 static void __attribute__ ((__noreturn__)) usage(FILE * out)
 {
-       fprintf(out,
-               _("Usage: %s [options] [-t type fs-options] device [size]\n"),
-               program_invocation_short_name);
-
-       fprintf(out, _("\nOptions:\n"
-                      " -t, --type=TYPE  file system type, when undefined ext2 is used\n"
-                      "     fs-options   parameters to real file system builder\n"
-                      "     device       path to a device\n"
-                      "     size         number of blocks on the device\n"
-                      " -V, --verbose    explain what is done\n"
-                      "                  defining -V more than once will cause a dry-run\n"
-                      " -V, --version    output version information and exit\n"
-                      "                  -V as version must be only option\n"
-                      " -h, --help       display this help and exit\n"));
+       fprintf(out, _("Usage:\n"));
+       fprintf(out, _(" %s [options] [-t <type>] [fs-options] <device> [<size>]\n"),
+                    program_invocation_short_name);
+
+       fprintf(out, _("\nOptions:\n"));
+       fprintf(out, _(" -t, --type=<type>  filesystem type; when unspecified, ext2 is used\n"));
+       fprintf(out, _("     fs-options     parameters for the real filesystem builder\n"));
+       fprintf(out, _("     <device>       path to the device to be used\n"));
+       fprintf(out, _("     <size>         number of blocks to be used on the device\n"));
+       fprintf(out, _(" -V, --verbose      explain what is being done;\n"
+                      "                      specifying -V more than once will cause a dry-run\n"));
+       fprintf(out, _(" -V, --version      display version information and exit;\n"
+                      "                      -V as --version must be the only option\n"));
+       fprintf(out, _(" -h, --help         display this help text and exit\n"));
 
        fprintf(out, _("\nFor more information see mkfs(8).\n"));