blob: dbf059b706224fa9ff6f550024f1ac037d769d00 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
$NetBSD: patch-ac,v 1.2 2004/07/11 13:40:06 wiz Exp $
--- tmac/doc.tmac.orig 2003-09-16 08:42:31.000000000 +0200
+++ tmac/doc.tmac
@@ -952,8 +952,16 @@
.de Nm
. if !\n[doc-arg-limit] \{\
. ds doc-macro-name Nm
-. ie \n[.$] \
+. ie \n[.$] \{\
. doc-parse-args \$@
+. nr doc-arg-ptr +1
+. if "\*[doc-arg\n[doc-arg-ptr]]"" \
+. ie "\*[doc-command-name]"" \
+. tm Usage: .Nm name ... (#\n[.c])
+. el \
+. ds doc-arg\n[doc-arg-ptr] \*[doc-command-name]
+. nr doc-arg-ptr -1
+. \}
. el \{\
. ie "\*[doc-command-name]"" \
. tm Usage: .Nm name ... (#\n[.c])
|