summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib/getopt.c
Commit message (Collapse)AuthorAgeFilesLines
* If the string specifying the allowed options starts with a leading `:',Joseph Koshy2001-08-161-5/+2
| | | | | | | | | | | `getopt(3)' should not print a warning for missing argument values. PR: bin/29625 Reviewed by: mikeh MFC after: 1 week Notes: svn path=/head/; revision=81746
* Don't print an error message if the bad option is '?'. This has beenWarner Losh2000-09-041-1/+1
| | | | | | | | | | | | in my tree for a long time. bde reviewed this once upon a time and said it was OK, iirc. This also obviates the need to put ? in the optstring argument to preclude the extra warning message which some people think confuses users. When I made my getopt cleanups of a long time ago, this was the compromise reached. I just neglected to commit it until now. Notes: svn path=/head/; revision=65421
* Fix handling of trailing :'s to match what other OSes do (spit outJordan K. Hubbard1999-12-171-2/+8
| | | | | | | | | a diagnostis). Submitted by: Guy Harris <gharris@flashcom.net> Notes: svn path=/head/; revision=54713
* Import CSRG 4.4BSD-Lite2 lib/libc onto vendor branchPeter Wemm1997-03-111-0/+117
Notes: svn path=/vendor/CSRG/dist/; revision=23658