From 1852dc267f985984983ba08ff7820e8221985498 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Sun, 13 Feb 2000 21:06:43 +0000 Subject: [PATCH] (mandoc_template): also fix no- prefix in .Sh OPTIONS git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7941 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/roken/getarg.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/roken/getarg.c b/lib/roken/getarg.c index 8de1dc591..dc55edabd 100644 --- a/lib/roken/getarg.c +++ b/lib/roken/getarg.c @@ -157,7 +157,9 @@ mandoc_template(struct getargs *args, printf("\n"); } if(args[i].long_name){ - printf(".Fl -%s", args[i].long_name); + printf(".Fl -%s%s", + args[i].type == arg_negative_flag ? "no-" : "", + args[i].long_name); print_arg(buf, sizeof(buf), 1, 1, args + i); printf("%s\n", buf); }