support optional-argument extension to getopt via double-colon
authorRich Felker <dalias@aerifal.cx>
Thu, 12 Jun 2014 03:38:44 +0000 (23:38 -0400)
committerRich Felker <dalias@aerifal.cx>
Thu, 12 Jun 2014 03:38:44 +0000 (23:38 -0400)
commit66fcde4ae4a52ae3edb1cf237ce2c22d08d7a062
tree26f7f4b223b219c19aeb51a586bee9617bb02536
parentd79b27785fb2476017225b13d24e4b8d408f61c6
support optional-argument extension to getopt via double-colon

this extension is not incompatible with the standard behavior of the
function, not expensive, and avoids requiring a replacement getopt
with full GNU extensions for a few important apps including busybox's
sed with the -i option.
src/misc/getopt.c