]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
doc: rmdir: improve --help formatting
authorPádraig Brady <P@draigBrady.com>
Sat, 12 Feb 2022 18:16:10 +0000 (18:16 +0000)
committerPádraig Brady <P@draigBrady.com>
Sat, 12 Feb 2022 18:16:34 +0000 (18:16 +0000)
* src/rmdir.c (usage): Move description to column 21,
so that a --long-option on its own line without a
trailing description, doesn't have an erroneous blank
line inserted between the option and description.
Also group descriptions with blank lines rather than indents,
so that man pages don't have erroneous blank lines
added within the description.
Addresses https://bugs.gnu.org/53946

src/rmdir.c

index f13aa8e0999f6d776b5eb1ce91371b983f049554..53311db8d7adf1d69fb2adf2025d770b16317ce7 100644 (file)
@@ -175,15 +175,21 @@ usage (int status)
       fputs (_("\
 Remove the DIRECTORY(ies), if they are empty.\n\
 \n\
+"), stdout);
+      fputs (_("\
       --ignore-fail-on-non-empty\n\
-                  ignore each failure that is solely because a directory\n\
+                    ignore each failure that is solely because a directory\n\
                     is non-empty\n\
+\n\
 "), stdout);
       fputs (_("\
-  -p, --parents   remove DIRECTORY and its ancestors; e.g., 'rmdir -p a/b/c' is\
+  -p, --parents     remove DIRECTORY and its ancestors; e.g., 'rmdir -p a/b/c'\
 \n\
-                    similar to 'rmdir a/b/c a/b a'\n\
-  -v, --verbose   output a diagnostic for every directory processed\n\
+                    is similar to 'rmdir a/b/c a/b a'\n\
+\n\
+"), stdout);
+      fputs (_("\
+  -v, --verbose     output a diagnostic for every directory processed\n\
 "), stdout);
       fputs (HELP_OPTION_DESCRIPTION, stdout);
       fputs (VERSION_OPTION_DESCRIPTION, stdout);