kevans
2f561e90ad
getopt_long(3): Document behavior of leading characters in optstring
...
Leading '+', '-', and ':' in optstring have special meaning. We briefly
mention that the first two have special meaning in that we say
POSIXLY_CORRECT turns them off, but we don't actually document their
meaning. Add a paragraph to RETURN VALUES explaining how they control
the treatment of non-option arguments.
A leading ':' has no mention; add a note that it suppresses warnings about
missing arguments.
Reviewed by: jilles
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D14142
2018-08-12 00:08:14 +00:00
eadler
6be9248603
getopt_long.3: wording quibbles
...
- Make wording more clear: "is expect" vs "is expected" [1]
- Remove extraneous trailing period..
Reported by: dim [1]
2013-12-13 21:50:03 +00:00
gjb
263706572b
Add missing opening and closing brackets in getopt_long.3 and getsubopt.3
...
to make the examples reflect reality more closely.
MFC after: 1 week
X-MFC-After: 9.0-RELEASE
2011-12-26 03:14:37 +00:00
joel
dd1fff9bcb
Fix typos, spelling, formatting and mdoc mistakes found by Nobuyuki while
...
translating these manual pages. Minor corrections by me.
Submitted by: Nobuyuki Koganemaru <n-kogane@syd.odn.ne.jp>
2010-08-16 15:18:30 +00:00
ru
ed72feddcb
Sort sections.
2005-01-20 09:17:07 +00:00
ru
4627268189
Markup fixes.
2005-01-14 21:07:56 +00:00
ache
5993cc3bce
Fix typo, was 'W'; instead of `W;'
2004-03-06 14:47:49 +00:00
ache
c94e5bebf5
Make GNU-compatible following case:
...
single '-' in command line and '-' (non-first) in options
2004-03-06 14:24:10 +00:00
ache
6ec2ddd536
Make return code in noarg case GNU-compatible
2004-03-03 08:29:00 +00:00
ache
7aeda997f8
Improve GNU compatibility in several places, use internal GNU_COMPATIBLE
...
define for it.
Don't catch POSIXLY_CORRECT env. into static variable, it can be changed
on the fly by program.
Use P1003.2 standartized illoptchar[]
2004-03-01 17:57:05 +00:00
ache
46a9b8739b
Comment out things related to getopt() replacement we not use
2004-03-01 10:59:23 +00:00
ache
67499340a7
Change "-"-started options when POSIX_CORRECTLY is set handling
...
in favour of GNU instead of NetBSD, because configure's use us and
expect GNU.
2004-03-01 10:12:45 +00:00
ache
af4255ff22
Add getopt_long_only() from OpenBSD and other OpenBSD cleanups
...
PR: 63173
Submitted by: Marius Strobl <marius@alchemy.franken.de>
2004-02-24 08:07:26 +00:00
ache
7b23d0ae2e
Add optarg, optind, opterr, optopt, optreset to SYNOPSYS
2004-02-23 05:07:11 +00:00
ru
8746d263e1
mdoc(7) police: "The .Fn function".
2002-12-18 12:45:11 +00:00
ru
bd8413493a
mdoc(7) police: overhaul.
...
Approved by: re
2002-12-09 13:54:29 +00:00
eric
21a7c522c7
Add getopt_long(3).
...
Obtained from: NetBSD
Sponsored by: Apple
2002-09-29 04:14:37 +00:00