[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 28/72: [grolbp]: Update usage message.
From: |
G. Branden Robinson |
Subject: |
[groff] 28/72: [grolbp]: Update usage message. |
Date: |
Sun, 23 Oct 2022 22:25:37 -0400 (EDT) |
gbranden pushed a commit to branch master
in repository groff.
commit c864c06b81502cdf68694ad3ba9af2c7a67c0574
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Fri Oct 21 21:35:00 2022 -0500
[grolbp]: Update usage message.
* src/devices/grolbp/lbp.cpp (usage): Update usage message. Present
different modes of operation on separate output lines. Sort options
in English lexicographic order.
Also update editor aid comments and drop old style Emacs file-local
variable setting. And wrap a long source line.
---
ChangeLog | 1 +
src/devices/grolbp/lbp.cpp | 47 +++++++++++++++++++++++++++++++---------------
2 files changed, 33 insertions(+), 15 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 2893d532b..7e0b88ffb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
2022-10-21 G. Branden Robinson <g.branden.robinson@gmail.com>
+ * src/devices/grolbp/lbp.cpp (usage):
* src/devices/grolj4/lj4.cpp (usage):
* src/preproc/pic/main.cpp (usage): Update usage message.
Present different modes of operation on separate output lines.
diff --git a/src/devices/grolbp/lbp.cpp b/src/devices/grolbp/lbp.cpp
index e0afa53a9..096a738d6 100644
--- a/src/devices/grolbp/lbp.cpp
+++ b/src/devices/grolbp/lbp.cpp
@@ -1,7 +1,6 @@
-// -*- C++ -*-
/* Copyright (C) 1994-2020 Free Software Foundation, Inc.
- Written by Francisco Andr�s Verd� <pandres@dragonet.es> with many ideas
- taken from the other groff drivers.
+ Written by Francisco Andr�s Verd� <pandres@dragonet.es> with many
+ ideas taken from the other groff drivers.
This file is part of groff.
@@ -625,18 +624,30 @@ static struct option long_options[] = {
static void usage(FILE *stream)
{
fprintf(stream,
- "usage: %s [-lvh] [-c n] [-p paper_size] [-F dir] [-o or]\n"
- " [-w width] [files ...]\n"
- "\n"
- " -o --orientation=[portrait|landscape]\n"
- " -v --version\n"
- " -c --copies=numcopies\n"
- " -l --landscape\n"
- " -p --papersize=paper_size\n"
- " -w --linewidth=width\n"
- " -F --fontdir=dir\n"
- " -h --help\n",
- program_name);
+"usage: %s [-l] [-c n] [-F dir] [-o ori] [-p fmt] [-w wid] [file ...]\n"
+"usage: %s {-v | --version}\n"
+"usage: %s {-h | --help}\n"
+"\n"
+"Translate the output of GNU troff(1) into a CaPSL and VDM format\n"
+"suitable for Canon LBP-4 and LBP-8 printers.\n"
+"\n"
+"Options:\n"
+" --copies=N\n"
+" -c N Produce N copies of each page.\n"
+" --fontdir=DIR\n"
+" -F DIR Search DIR for device and font description files.\n"
+" --landscape\n"
+" -l Format document in landscape orientation.\n"
+" --orientation=ORI\n"
+" -o ORI Format document in orientation ORI (\"portrait\","
+" \"landscape\").\n"
+" --papersize=FMT\n"
+" -p FMT Set the paper format to FMT.\n"
+" --linewidth=WID\n"
+" -w WID Set default line thickness to WID thousandths of an em.\n"
+"\n"
+"See the grolbp(1) manual page.\n",
+ program_name, program_name, program_name);
}
int main(int argc, char **argv)
@@ -726,3 +737,9 @@ int main(int argc, char **argv)
lbpputs("\033c\033<");
return 0;
}
+
+// Local Variables:
+// fill-column: 72
+// mode: C++
+// End:
+// vim: set cindent noexpandtab shiftwidth=2 textwidth=72:
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 28/72: [grolbp]: Update usage message.,
G. Branden Robinson <=