summaryrefslogtreecommitdiffstats
path: root/usr.bin/c99
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2005-05-21 09:55:10 +0000
committerru <ru@FreeBSD.org>2005-05-21 09:55:10 +0000
commit0491ba1f6311b421efbea894a9c8c6c704b48cac (patch)
tree4870c75413d8f7d09b554f2a2207e1d05af42979 /usr.bin/c99
parent5a7d45e3b5455d554665269116b17dfc57718640 (diff)
downloadFreeBSD-src-0491ba1f6311b421efbea894a9c8c6c704b48cac.zip
FreeBSD-src-0491ba1f6311b421efbea894a9c8c6c704b48cac.tar.gz
Sync program's usage() with manpage's SYNOPSIS.
Diffstat (limited to 'usr.bin/c99')
-rw-r--r--usr.bin/c99/c99.19
-rw-r--r--usr.bin/c99/c99.c7
2 files changed, 7 insertions, 9 deletions
diff --git a/usr.bin/c99/c99.1 b/usr.bin/c99/c99.1
index c1d902b..615d277 100644
--- a/usr.bin/c99/c99.1
+++ b/usr.bin/c99/c99.1
@@ -35,13 +35,12 @@
.Sh SYNOPSIS
.Nm
.Op Fl cEgs
-.Op Fl D Ar name Ns Op = Ns Ar value
-.Ar ...
-.Op Fl I Ar directory ...
-.Op Fl L Ar directory ...
+.Oo Fl D Ar name Ns Oo = Ns Ar value Oc Oc ...
+.Oo Fl I Ar directory Oc ...
+.Oo Fl L Ar directory Oc ...
.Op Fl o Ar outfile
.Op Fl O Ar optlevel
-.Op Fl U Ar name ...
+.Oo Fl U Ar name Oc ...
.Ar operand ...
.Sh DESCRIPTION
This is the name of the C language compiler as required by the
diff --git a/usr.bin/c99/c99.c b/usr.bin/c99/c99.c
index 17dc27e..553099f 100644
--- a/usr.bin/c99/c99.c
+++ b/usr.bin/c99/c99.c
@@ -126,9 +126,8 @@ addlib(const char *lib)
void
usage(void)
{
- fprintf(stderr,
-"usage: c99 [-cEgs] [-D name[=value]] [-I directory] ... [-L directory] ...\n");
- fprintf(stderr,
-" [-o outfile] [-O optlevel] [-U name]... operand ...\n");
+ (void)fprintf(stderr, "%s\n%s\n",
+"usage: c99 [-cEgs] [-D name[=value]] ... [-I directory] ... [-L directory] ...",
+" [-o outfile] [-O optlevel] [-U name] ... operand ...");
exit(1);
}
OpenPOWER on IntegriCloud