/usr/share/zsh/5.5.1/help
NameSizeModeActions
alias23220644editdlrm
autoload46090644editdlrm
bg1230644editdlrm
bindkey600644editdlrm
break1840644editdlrm
builtin810644editdlrm
bye5310644editdlrm
cap620644editdlrm
cd27190644editdlrm
chdir27190644editdlrm
clone640644editdlrm
colon1900644editdlrm
command5660644editdlrm
comparguments810644editdlrm
compcall750644editdlrm
compctl740644editdlrm
compdescribe800644editdlrm
compfiles770644editdlrm
compgroups780644editdlrm
compquote770644editdlrm
comptags760644editdlrm
comptry750644editdlrm
compvalues780644editdlrm
continue2440644editdlrm
declare214120644editdlrm
dirs7290644editdlrm
disable37670644editdlrm
disown6820644editdlrm
dot11440644editdlrm
echo14700644editdlrm
echotc660644editdlrm
echoti670644editdlrm
emulate65620644editdlrm
enable12620644editdlrm
eval3740644editdlrm
exec9970644editdlrm
exit5310644editdlrm
export2800644editdlrm
false680644editdlrm
fc62190644editdlrm
fg1400644editdlrm
float214120644editdlrm
functions37680644editdlrm
getcap620644editdlrm
getln1470644editdlrm
getopts18400644editdlrm
hash24430644editdlrm
history62190644editdlrm
integer214120644editdlrm
jobs7910644editdlrm
kill14800644editdlrm
let3230644editdlrm
limit35980644editdlrm
local214120644editdlrm
log1160644editdlrm
logout5310644editdlrm
noglob830644editdlrm
popd8200644editdlrm
print54150644editdlrm
printf21530644editdlrm
pushd16260644editdlrm
pushln54150644editdlrm
pwd2600644editdlrm
r62190644editdlrm
read58140644editdlrm
readonly214120644editdlrm
rehash24430644editdlrm
return9280644editdlrm
sched640644editdlrm
set24660644editdlrm
setcap620644editdlrm
setopt15990644editdlrm
shift4220644editdlrm
source1820644editdlrm
stat630644editdlrm
suspend1990644editdlrm
test12120644editdlrm
times1130644editdlrm
trap37040644editdlrm
true670644editdlrm
ttyctl12190644editdlrm
type23930644editdlrm
typeset214120644editdlrm
ulimit31730644editdlrm
umask4850644editdlrm
unalias12820644editdlrm
unfunction12820644editdlrm
unhash12820644editdlrm
unlimit5550644editdlrm
unset9330644editdlrm
unsetopt5060644editdlrm
vared520644editdlrm
wait13780644editdlrm
whence23930644editdlrm
where23930644editdlrm
which23930644editdlrm
zcompile66290644editdlrm
zformat720644editdlrm
zftp630644editdlrm
zle520644editdlrm
zmodload173370644editdlrm
zparseopts750644editdlrm
zprof640644editdlrm
zpty630644editdlrm
zregexparse760644editdlrm
zsocket770644editdlrm
zstyle640644editdlrm
ztcp660644editdlrm
Edit: /usr/share/zsh/5.5.1/help/getopts (1840B)
getopts optstring name [ arg ... ] Checks the args for legal options. If the args are omitted, use the positional parameters. A valid option argument begins with a `+' or a `-'. An argument not beginning with a `+' or a `-', or the argument `--', ends the options. Note that a single `-' is not considered a valid option argument. optstring contains the letters that getopts recognizes. If a letter is followed by a `:', that option requires an argument. The options can be separated from the argument by blanks. Each time it is invoked, getopts places the option letter it finds in the shell parameter name, prepended with a `+' when arg begins with a `+'. The index of the next arg is stored in OPTIND. The option argument, if any, is stored in OPTARG. The first option to be examined may be changed by explicitly assigning to OPTIND. OPTIND has an initial value of 1, and is normally set to 1 upon entry to a shell function and restored upon exit (this is disabled by the POSIX_BUILTINS option). OPTARG is not reset and retains its value from the most recent call to getopts. If either of OPTIND or OPTARG is explicitly unset, it remains unset, and the index or option argument is not stored. The option itself is still stored in name in this case. A leading `:' in optstring causes getopts to store the letter of any invalid option in OPTARG, and to set name to `?' for an unknown option and to `:' when a required argument is missing. Otherwise, getopts sets name to `?' and prints an error message when an option is invalid. The exit status is nonzero when there are no more options.