(mandoc_template): better man-stuff for negative options
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7938 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 1998, 1999 Kungliga Tekniska H<>gskolan
|
* Copyright (c) 1997 - 2000 Kungliga Tekniska H<>gskolan
|
||||||
* (Royal Institute of Technology, Stockholm, Sweden).
|
* (Royal Institute of Technology, Stockholm, Sweden).
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
@@ -125,7 +125,9 @@ mandoc_template(struct getargs *args,
|
|||||||
}
|
}
|
||||||
if(args[i].long_name) {
|
if(args[i].long_name) {
|
||||||
print_arg(buf, sizeof(buf), 1, 1, args + i);
|
print_arg(buf, sizeof(buf), 1, 1, args + i);
|
||||||
printf("Fl -%s%s", args[i].long_name, buf);
|
printf("Fl -%s%s%s",
|
||||||
|
args[i].type == arg_negative_flag ? "no-" : "",
|
||||||
|
args[i].long_name, buf);
|
||||||
}
|
}
|
||||||
printf("\n");
|
printf("\n");
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user