summary refs log tree commit diff
path: root/catgirl.1
diff options
context:
space:
mode:
authorKlemens Nanni <klemens@posteo.de>2021-06-13 23:39:23 +0000
committerJune McEnroe <june@causal.agency>2021-06-14 17:00:15 -0400
commit1ccadd7c72e10854f4562115d9ce783d50163afa (patch)
tree7360ca1bfc487a61c93dfd97f40d679a0c90b4dd /catgirl.1
parentAdd \com text macro (diff)
downloadcatgirl-1ccadd7c72e10854f4562115d9ce783d50163afa.tar.gz
catgirl-1ccadd7c72e10854f4562115d9ce783d50163afa.zip
Treat `-T's optional argument as optional
`-T[format]' is not possible with getopt(3) but getopt_long(3) supports
"T::" exactly for that, so make the command line option go in line with
configuration files and documentation.

While here, check `has_arg' explicitly as getopt_long(3) only documents
mnemonic values not numerical ones.
Diffstat (limited to 'catgirl.1')
-rw-r--r--catgirl.14
1 files changed, 2 insertions, 2 deletions
diff --git a/catgirl.1 b/catgirl.1
index 5412a52..213b504 100644
--- a/catgirl.1
+++ b/catgirl.1
@@ -15,7 +15,7 @@
 .Op Fl N Ar notify
 .Op Fl O Ar open
 .Op Fl S Ar bind
-.Op Fl T Ar timestamp
+.Op Fl T Ns Op Ar timestamp
 .Op Fl a Ar plain
 .Op Fl c Ar cert
 .Op Fl h Ar host
@@ -188,7 +188,7 @@ Bind to source address
 .Ar host
 when connecting to the server.
 .
-.It Fl T Ar format | Cm timestamp Op = Ar format
+.It Fl T Ns Oo Ar format Oc | Cm timestamp Op = Ar format
 Show timestamps by default,
 in the specified
 .Xr strftime 3