gbranden pushed a commit to branch master
in repository groff.
commit 1e274972070c828c40d35ba79933f7b21bdb8639
Author: G. Branden Robinson <[email protected]>
AuthorDate: Tue Feb 10 16:20:56 2026 -0600
[gropdf]: Continue fixing Savannah #68022.
Really update the synopsis section of the man page, and sync the
command's usage message with it. Sort options in lexicographic order.
Continues commit 2fa3a2c3a4, 8 February.
Also prevent break within brackets of `[-u [cmap-file]]` option in man
page synopsis.
Also cosmetically reformat syntax of message string in `usage()` to ease
maintenance.
---
src/devices/gropdf/gropdf.1.man | 6 +++---
src/devices/gropdf/gropdf.pl | 10 +++++++---
2 files changed, 10 insertions(+), 6 deletions(-)
diff --git a/src/devices/gropdf/gropdf.1.man b/src/devices/gropdf/gropdf.1.man
index 584c5e27e..529d31b48 100644
--- a/src/devices/gropdf/gropdf.1.man
+++ b/src/devices/gropdf/gropdf.1.man
@@ -67,19 +67,19 @@ output driver for Portable Document Format
.
.SY gropdf
.RB [ \-delsW ]
+.RB [{ \-f | \-\-format-options }\~\c
+.IR bit-vector ]
.RB [ \-F\~\c
.IR font-directory ]
.RB [ \-I\~\c
.IR inclusion-directory ]
-.RB [ \-\-opt\~\c
-.IR option-bits ]
.RB [ \-p\~\c
.IR paper-format ]
.RB [ \-\-pdfver\~\c
.RB { 1.4 \||\| 1.7 }]
\#.RB [ \-w\~\c
\#.IR n ]
-.RB [ \-u
+.RB [ \-u\~\c
.RI [ cmap-file ]]
.RB [ \-y\~\c
.IR foundry ]
diff --git a/src/devices/gropdf/gropdf.pl b/src/devices/gropdf/gropdf.pl
index c4e9d6755..95c0cebda 100644
--- a/src/devices/gropdf/gropdf.pl
+++ b/src/devices/gropdf/gropdf.pl
@@ -456,9 +456,13 @@ sub usage
my $had_error = shift;
$stream = *STDERR if $had_error;
print $stream
-"usage: $prog [-delsW] [-f bit-vector] [-F font-directory]" .
-" [--format-options bit-vector] [-I inclusion-directory]" .
-" [-p paper-format] [--pdfver {1.4|1.7}] [-u [cmap-file]]" .
+"usage: $prog [-delsW]" .
+" [{-f|--format-options} bit-vector]" .
+" [-F font-directory]" .
+" [-I inclusion-directory]" .
+" [-p paper-format]" .
+" [--pdfver {1.4|1.7}]" .
+" [-u [cmap-file]]" .
" [-y foundry] [file ...]\n" .
"usage: $prog {-v | --version}\n" .
"usage: $prog --help\n";
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit