diff options
author | obrien <obrien@FreeBSD.org> | 2004-06-26 05:15:00 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2004-06-26 05:15:00 +0000 |
commit | 2194f33c4ebfd63877c101306c50c6f43ef914c7 (patch) | |
tree | f442870a555ec708086121bd15850a0ab94aa2af /share/man/man9 | |
parent | eb4d8613c713120b17996d9e3aca7aa4d3d2a687 (diff) | |
download | FreeBSD-src-2194f33c4ebfd63877c101306c50c6f43ef914c7.zip FreeBSD-src-2194f33c4ebfd63877c101306c50c6f43ef914c7.tar.gz |
Embellish the getopt(3) example with mixed case.
Reviewed by: bde
Diffstat (limited to 'share/man/man9')
-rw-r--r-- | share/man/man9/style.9 | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/share/man/man9/style.9 b/share/man/man9/style.9 index f64e3c5..10aecf4 100644 --- a/share/man/man9/style.9 +++ b/share/man/man9/style.9 @@ -84,7 +84,6 @@ in front of foreign VCS IDs if the file is renamed. static char sccsid[] = "@(#)style 1.14 (Berkeley) 4/28/95"; #endif /* not lint */ #endif - #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); .Ed @@ -446,7 +445,7 @@ Code that cannot be reached should have a .Li NOTREACHED comment. .Bd -literal - while ((ch = getopt(argc, argv, "abn:")) != -1) + while ((ch = getopt(argc, argv, "abNn:")) != -1) switch (ch) { /* Indent the switch. */ case 'a': /* Don't indent the case. */ aflag = 1; @@ -454,6 +453,9 @@ comment. case 'b': bflag = 1; break; + case 'N': + Nflag = 1; + break; case 'n': num = strtol(optarg, &ep, 10); if (num <= 0 || *ep != '\e0') { |