groff-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[groff] 53/72: [nroff]: Update usage message.


From: G. Branden Robinson
Subject: [groff] 53/72: [nroff]: Update usage message.
Date: Sun, 23 Oct 2022 22:25:44 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit cf62182939c202c8af81f7101314a7bc525312a9
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Sun Oct 23 13:14:35 2022 -0500

    [nroff]: Update usage message.
    
    * src/roff/nroff/nroff.sh: Update usage message.  Present different
      modes of operation on separate output lines.  Revise metasyntactic
      variable names for clarity.
      - name -> string
      The former is not wrong but is too general.  In practice there is no
      way to populate a macro or diversion from a command-line argument.
      - reg -> register
      - expr -> numeric-expression
      Use complete words and the exact terminology from our documentation.
---
 ChangeLog               |  1 +
 src/roff/nroff/nroff.sh | 12 ++++++++----
 2 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index b4661171a..b76496353 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -15,6 +15,7 @@
        * src/preproc/refer/refer.cpp (usage):
        * src/preproc/soelim/soelim.cpp (usage):
        * src/roff/groff/groff.cpp (synopsis, help):
+       * src/roff/nroff/nroff.sh:
        * src/roff/troff/input.cpp (usage):
        * src/utils/addftinfo/addftinfo.cpp (usage):
        * src/utils/hpftodit/hpftodit.cpp (usage):
diff --git a/src/roff/nroff/nroff.sh b/src/roff/nroff/nroff.sh
index 962703736..77f5c069e 100644
--- a/src/roff/nroff/nroff.sh
+++ b/src/roff/nroff/nroff.sh
@@ -28,10 +28,14 @@ opts=
 dry_run=
 is_option_argument_pending=
 
-usage="usage: $prog [-bcCEhikpRStUVz] [-dCS] [-dNAME=STRING] [-Karg]\
- [-mNAME] [-Mdir] [-nNUM] [-oLIST] [-Parg] [-rCN] [-rREG=EXPR] [-Tdev]\
- [-wNAME] [-Wname] [file ...]
-usage: $prog {--help | -v | --version}"
+usage="usage: $prog [-bcCEhikpRStUVz] [-d ctext] [-d string=text] \
+[-K fallback-encoding] [-m macro-package] [-M macro-directory] \
+[-n page-number] [-o page-list] [-P postprocessor-argument] \
+[-r cnumeric-expression] [-r register=numeric-expression] \
+[-T output-device] [-w warning-category] [-W warning-category] \
+[file ...]
+usage: $prog {-v | --version}
+usage: $prog --help"
 
 for arg
 do



reply via email to

[Prev in Thread] Current Thread [Next in Thread]