From: Pádraig Brady Date: Sat, 12 Feb 2022 18:16:10 +0000 (+0000) Subject: doc: rmdir: improve --help formatting X-Git-Tag: v9.1~59 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4d8d58429ab299709b2ba630a54110c77022ec4;p=thirdparty%2Fcoreutils.git doc: rmdir: improve --help formatting * 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 --- diff --git a/src/rmdir.c b/src/rmdir.c index f13aa8e099..53311db8d7 100644 --- a/src/rmdir.c +++ b/src/rmdir.c @@ -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);