aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2025-11-27 21:09:47 -0500
committerB. Watson <urchlay@slackware.uk>2025-11-27 21:09:47 -0500
commit15b09c5ad590b6c8662c7d55319235b917eeb597 (patch)
tree81bd56d5bcecafb11aa740d247f6f402c0d4b7b4
parent0a1b08e58e1ef9a5d60295deb4bf158562718909 (diff)
downloadunalf-15b09c5ad590b6c8662c7d55319235b917eeb597.tar.gz
Fix usage messages.
-rw-r--r--src/alf.16
-rw-r--r--src/alf.rst6
-rw-r--r--src/alfusage.c4
-rw-r--r--src/mkusage.pl4
-rw-r--r--src/usage.c9
5 files changed, 15 insertions, 14 deletions
diff --git a/src/alf.1 b/src/alf.1
index 756d32a..f2efb38 100644
--- a/src/alf.1
+++ b/src/alf.1
@@ -93,21 +93,21 @@ Overwrite \fIalf\-file\fP if it exists; do not make a \fB~\fP backup.
.
.INDENT 0.0
.TP
-.BI \-t\fB d
+.B \fB\-td\fP
Use default \fBLZ.COM\fP timestamps (8 Dec 82 12:24).
.UNINDENT
.\" use default LZ.COM timestamps.
.
.INDENT 0.0
.TP
-.BI \-t\fB u
+.B \fB\-tu\fP
Use UTC for timestamps (default is local timezone).
.UNINDENT
.\" use UTC timestamps.
.
.INDENT 0.0
.TP
-.BI \-t\fB z
+.B \fB\-tz\fP
Use zero for timestamps (0 ??? 80 12:00a).
.UNINDENT
.\" use zero timestamps.
diff --git a/src/alf.rst b/src/alf.rst
index 77c31cd..3110180 100644
--- a/src/alf.rst
+++ b/src/alf.rst
@@ -73,17 +73,17 @@ OPTIONS
.. overwrite alf file if exists (do not create file~ backup).
--td
+**-td**
Use default **LZ.COM** timestamps (8 Dec 82 12:24).
.. use default LZ.COM timestamps.
--tu
+**-tu**
Use UTC for timestamps (default is local timezone).
.. use UTC timestamps.
--tz
+**-tz**
Use zero for timestamps (0 ??? 80 12:00a).
.. use zero timestamps.
diff --git a/src/alfusage.c b/src/alfusage.c
index eae4daf..98eb6f2 100644
--- a/src/alfusage.c
+++ b/src/alfusage.c
@@ -1,11 +1,11 @@
const char *usage_msg[] = {
" -a: append to alf file.",
" -A: convert EOLs and tabs in all input files.",
- " -h, --help: show this help message.",
+ " -h: show this help message.",
" -o: overwrite alf file if exists (do not create file~ backup).",
" -td: use default LZ.COM timestamps.",
" -tu: use UTC timestamps.",
" -tz: use zero timestamps.",
- " -V, --version: show version number.",
+ " -V: show version number.",
(const char*)0
};
diff --git a/src/mkusage.pl b/src/mkusage.pl
index e2274c2..1c6a1bf 100644
--- a/src/mkusage.pl
+++ b/src/mkusage.pl
@@ -6,8 +6,8 @@ while(<>) {
chomp;
next if /^---/;
last if /^\.\. ENFOPTS/;
- if(/^-[-a-zA-Z\d]/) {
- $opt = $_;
+ if(/^(?:\*\*)?(-[-a-zA-Z\d]+)/) {
+ $opt = $1;
next;
}
if($opt && (/^\.\. (.*)$/)) {
diff --git a/src/usage.c b/src/usage.c
index f25e707..7615d2e 100644
--- a/src/usage.c
+++ b/src/usage.c
@@ -1,9 +1,10 @@
const char *usage_msg[] = {
" -a: convert EOLs and tabs in text files.",
- " -d output-dir: set output directory (created if needed).",
+ " -aa: convert EOLs and tabs in ALL files.",
+ " -d: set output directory (created if needed).",
" -e: extract files (redundant; this is the default action).",
" -f: fix (remove) junk at EOF.",
- " -h, --help: show this help message.",
+ " -h: show this help message.",
" -k: keep trailing periods (dots) in filenames.",
" -l: list files in archive (filenames only).",
" -L: use lowercase filenames.",
@@ -12,7 +13,7 @@ const char *usage_msg[] = {
" -q: quiet: don't print filenames during extraction/testing.",
" -t: test archive.",
" -v: verbose listing of archive contents.",
- " -V, --version: show version number.",
- " -x wildcard: exclude <wildcard>. may be given multiple times.",
+ " -V: show version number.",
+ " -x: exclude <wildcard>. may be given multiple times.",
(const char*)0
};