mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-11-19 13:33:52 +01:00
unposted: escape colons in _python -W option argument message
This commit is contained in:
parent
9bc0982477
commit
4454ccf47e
@ -1,3 +1,8 @@
|
||||
2005-07-16 Doug Kearns <djkea2@gus.gscit.monash.edu.au>
|
||||
|
||||
* unposted: Completion/Unix/Command/_python: escape colons in -W option
|
||||
argument message
|
||||
|
||||
2005-07-15 Wayne Davison <wayned@users.sourceforge.net>
|
||||
|
||||
* 21464: Doc/Zsh/options.yo, Src/zsh.h, Src/options.c, Src/init.c,
|
||||
|
@ -21,7 +21,7 @@ _arguments -C -s -S \
|
||||
'-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)' \
|
||||
'-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: _normal' && return
|
||||
@ -32,7 +32,7 @@ if [[ "$state" = modules ]]; then
|
||||
${${=${(f)"$(_call_program modules $words[1] -c \
|
||||
'from\ pydoc\ import\ help\;\ help\(\"modules\"\)')"}[2,-3]}:#\(package\)}
|
||||
)
|
||||
_wanted modules expl module compadd -a modules
|
||||
_wanted modules expl module compadd -a modules && return
|
||||
fi
|
||||
|
||||
return 1
|
||||
|
Loading…
Reference in New Issue
Block a user