getopt.3: Clarify behaviour
commitdfa1ee2040308be41839c1a00c4661d4fc181494
authorJames O. D. Hunt <jamesodhunt@gmail.com>
Sun, 9 May 2021 20:19:43 +0000 (9 22:19 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Sun, 9 May 2021 21:09:11 +0000 (10 09:09 +1200)
tree6093de0d06da12f8cc1da9f686344673f232dd2b
parentf729c4f36e59d4ccd76ba6cdc142b9aaed6fe2d6
getopt.3: Clarify behaviour

Improved the `getopt(3)` man page in the following ways:

1) Defined the existing term "legitimate option character".
2) Added an additional NOTE stressing that arguments are parsed in strict
   order and the implications of this when numeric options are utilised.

Signed-off-by: James O. D. Hunt <jamesodhunt@gmail.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man3/getopt.3