[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 16/37: [xtotroff]: Tweak usage message.
From: |
G. Branden Robinson |
Subject: |
[groff] 16/37: [xtotroff]: Tweak usage message. |
Date: |
Mon, 14 Mar 2022 01:59:09 -0400 (EDT) |
gbranden pushed a commit to branch master
in repository groff.
commit f30428335d76cbfe3dfe54989ec5133d7fb08b0c
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Mon Mar 7 14:12:14 2022 +1100
[xtotroff]: Tweak usage message.
* src/utils/xtotroff/xtotroff.c (usage): Align with man page. Prefix
each mode of operation with "usage:", to reduce confusion when lines
wrap and to ease grepping.
---
ChangeLog | 1 +
src/utils/xtotroff/xtotroff.c | 6 +++---
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 4acdc654..7ddee364 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
2022-03-07 G. Branden Robinson <g.branden.robinson@gmail.com>
* src/utils/xtotroff/xtotroff.1.man (Options) <-d>: Document it.
+ * src/utils/xtotroff/xtotroff.c (usage): Align with man page.
2022-03-07 G. Branden Robinson <g.branden.robinson@gmail.com>
diff --git a/src/utils/xtotroff/xtotroff.c b/src/utils/xtotroff/xtotroff.c
index eee39eae..1519a8c3 100644
--- a/src/utils/xtotroff/xtotroff.c
+++ b/src/utils/xtotroff/xtotroff.c
@@ -270,9 +270,9 @@ static bool MapFont(char *font_name, const char *troff_name)
static void usage(FILE *stream)
{
fprintf(stream,
- "usage: %s [-d directory] [-r resolution] [-s type-size]"
- " font-map\n"
- " %s -v\n",
+ "usage: %s [-d destination-directory] [-r resolution]"
+ " [-s type-size] font-map\n"
+ "usage: %s -v\n",
program_name, program_name);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 16/37: [xtotroff]: Tweak usage message.,
G. Branden Robinson <=