xz: Make --help two lines shorter.
authorLasse Collin <lasse.collin@tukaani.org>
Fri, 3 Sep 2010 08:11:25 +0000 (11:11 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Fri, 3 Sep 2010 08:11:25 +0000 (11:11 +0300)
At least for now, the --help option doesn't list any
options that take arguments, so "Mandatory arguments to..."
can be omitted.

src/xz/message.c

index c62e2b2..4ccc893 100644 (file)
@@ -1076,8 +1076,11 @@ message_help(bool long_help)
                        "Compress or decompress FILEs in the .xz format.\n\n"),
                        progname);
 
-       puts(_("Mandatory arguments to long options are mandatory for "
-                       "short options too.\n"));
+       // NOTE: The short help doesn't currently have options that
+       // take arguments.
+       if (long_help)
+               puts(_("Mandatory arguments to long options are mandatory "
+                               "for short options too.\n"));
 
        if (long_help)
                puts(_(" Operation mode:\n"));