From a5d158ab8fdf9503d152c742aae14713dc33e569 Mon Sep 17 00:00:00 2001 From: =?utf8?q?P=C3=A1draig=20Brady?= Date: Mon, 14 May 2018 21:33:37 -0700 Subject: [PATCH] doc: improve formatting of nl --help * src/nl.c (usage): Better delineate the information. --- src/nl.c | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/src/nl.c b/src/nl.c index 90c7ea062c..7aababf606 100644 --- a/src/nl.c +++ b/src/nl.c @@ -205,23 +205,28 @@ Write each FILE to standard output, with line numbers added.\n\ fputs (VERSION_OPTION_DESCRIPTION, stdout); fputs (_("\ \n\ -By default, selects -v1 -i1 -l1 -sTAB -w6 -nrn -hn -bt -fn.\n\ -CC are two delimiter characters used to construct logical page delimiters,\n\ -a missing second character implies :. Type \\\\ for \\. STYLE is one of:\n\ +Default options are: -bt -d'\\:' -fn -hn -i1 -l1 -n'rn' -s -v1 -w6\n\ +\n\ +CC are two delimiter characters used to construct logical page delimiters;\n\ +a missing second character implies ':'.\n\ "), stdout); fputs (_("\ \n\ - a number all lines\n\ - t number only nonempty lines\n\ - n number no lines\n\ - pBRE number only lines that contain a match for the basic regular\n\ - expression, BRE\n\ +STYLE is one of:\n\ +\n\ + a number all lines\n\ + t number only nonempty lines\n\ + n number no lines\n\ + pBRE number only lines that contain a match for the basic regular\n\ + expression, BRE\n\ +"), stdout); + fputs (_("\ \n\ FORMAT is one of:\n\ \n\ - ln left justified, no leading zeros\n\ - rn right justified, no leading zeros\n\ - rz right justified, leading zeros\n\ + ln left justified, no leading zeros\n\ + rn right justified, no leading zeros\n\ + rz right justified, leading zeros\n\ \n\ "), stdout); emit_ancillary_info (PROGRAM_NAME); -- 2.47.3