[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 26/72: [pic]: Update usage message.
From: |
G. Branden Robinson |
Subject: |
[groff] 26/72: [pic]: Update usage message. |
Date: |
Sun, 23 Oct 2022 22:25:37 -0400 (EDT) |
gbranden pushed a commit to branch master
in repository groff.
commit 24a57a724647000da4fa1cfcec2e1c58e06088a7
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Fri Oct 21 10:37:31 2022 -0500
[pic]: Update usage message.
* src/preproc/pic/main.cpp (usage): Update usage message. Present
different modes of operation on separate output lines. Sort options
in English lexicographic order.
---
ChangeLog | 6 ++++++
src/preproc/pic/main.cpp | 8 +++++---
2 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index f24ee7e5f..5a869d533 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2022-10-21 G. Branden Robinson <g.branden.robinson@gmail.com>
+
+ * src/preproc/pic/main.cpp (usage): Update usage message.
+ Present different modes of operation on separate output lines.
+ Sort options in English lexicographic order.
+
2022-10-21 G. Branden Robinson <g.branden.robinson@gmail.com>
* src/devices/gropdf/gropdf.pl: Revise handling of argument 0.
diff --git a/src/preproc/pic/main.cpp b/src/preproc/pic/main.cpp
index 7d84afb97..f7e194ff3 100644
--- a/src/preproc/pic/main.cpp
+++ b/src/preproc/pic/main.cpp
@@ -482,13 +482,15 @@ void do_whole_file(const char *filename)
void usage(FILE *stream)
{
- fprintf(stream, "usage: %s [ -nvCSU ] [ filename ... ]\n", program_name);
+ fprintf(stream, "usage: %s [-CnSU] [file ...]\n", program_name);
#ifdef TEX_SUPPORT
- fprintf(stream, " %s -t [ -cvzCSU ] [ filename ... ]\n", program_name);
+ fprintf(stream, "usage: %s -t [-cCSUz] [file ...]\n", program_name);
#endif
#ifdef FIG_SUPPORT
- fprintf(stream, " %s -f [ -v ] [ filename ]\n", program_name);
+ fprintf(stream, "usage: %s -f [-v] [file]\n", program_name);
#endif
+ fprintf(stream, "usage: %s {-v | --version}\n", program_name);
+ fprintf(stream, "usage: %s --help\n", program_name);
}
#if defined(__MSDOS__) || defined(__EMX__)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 26/72: [pic]: Update usage message.,
G. Branden Robinson <=