mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-11-20 05:53:52 +01:00
24 lines
1.1 KiB
Plaintext
24 lines
1.1 KiB
Plaintext
#compdef python
|
|
|
|
_arguments -s -S \
|
|
'(1 -)-c+[program passed in as string (terminates option list)]:python command:' \
|
|
'-d[debug output from parser]' \
|
|
'-E[ignore environment variables (such as PYTHONPATH)]' \
|
|
'(1 * -)-h[display help information]' \
|
|
'-i[inspect interactively after running script]' \
|
|
'-O[optimize generated bytecode]' \
|
|
'-OO[remove doc-strings in addition to the -O optimizations]' \
|
|
'-Q+[division options]:division option:(old warn warnall new)' \
|
|
"-S[don't imply 'import site' on initialization]" \
|
|
'-t[issue warnings about inconsistent tab usage]' \
|
|
'-tt[issue errors about inconsistent tab usage]' \
|
|
'-u[unbuffered binary stdout and stderr]' \
|
|
'-v[verbose (trace import statements)]' \
|
|
'(1 * -)-V[display version information]' \
|
|
'-W+[warning control]:warning filter (action:message:category:module:lineno):(default always ignore module once error)' \
|
|
'-x[skip first line of source, allowing use of non-Unix forms of #!cmd]' \
|
|
'(-)1:script file:_files -g "*.py(|c|o)(-.)"' \
|
|
'*:script argument:_files' && return
|
|
|
|
return 1
|