mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-11-01 18:30:55 +01:00
17504: note that getopts doesn't handle a single `-' as an option argument
This commit is contained in:
parent
1f27cfb56e
commit
a8f7d57e83
2 changed files with 7 additions and 0 deletions
|
|
@ -448,6 +448,7 @@ Checks the var(arg)s for legal options. If the var(arg)s are omitted,
|
|||
use the positional parameters. A valid option argument
|
||||
begins with a `tt(PLUS())' or a `tt(-)'. An argument not beginning with
|
||||
a `tt(PLUS())' or a `tt(-)', or the argument `tt(--)', ends the options.
|
||||
Note that a single `tt(-)' is not considered a valid option argument.
|
||||
var(optstring) contains the letters that tt(getopts)
|
||||
recognizes. If a letter is followed by a `tt(:)', that option
|
||||
is expected to have an argument. The options can be
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue