about summary refs log tree commit diff
diff options
context:
space:
mode:
authorŠtěpán Němec <stepnem@gmail.com>2021-07-27 00:10:50 +0200
committerOliver Kiddle <opk@zsh.org>2021-08-27 08:51:32 +0200
commit5ef55de65ef6f9cac6297bc8c5f87c1a109cc7e1 (patch)
tree675572b514237da422d6542486aa017b869b7073
parent0a80579ed18b4004a99b5dc062ce874c0bdc3201 (diff)
downloadzsh-5ef55de65ef6f9cac6297bc8c5f87c1a109cc7e1.tar.gz
zsh-5ef55de65ef6f9cac6297bc8c5f87c1a109cc7e1.tar.xz
zsh-5ef55de65ef6f9cac6297bc8c5f87c1a109cc7e1.zip
49234: add missing options in python completion
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Unix/Command/_python7
2 files changed, 10 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index f558bd47c..88537d383 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2021-08-27  Oliver Kiddle  <opk@zsh.org>
+
+	* Štěpán Němec: 49234: Completion/Unix/Command/_python:
+	add missing options in python completion
+
 2021-08-26  Peter Stephenson  <p.w.stephenson@ntlworld.com>
 
 	* 49307 with documentation updated: Src/exec,
diff --git a/Completion/Unix/Command/_python b/Completion/Unix/Command/_python
index f10106f9b..e5bac18bb 100644
--- a/Completion/Unix/Command/_python
+++ b/Completion/Unix/Command/_python
@@ -1,7 +1,7 @@
 #compdef -P python[0-9.]#
 
 # Python 2.7
-# Python 3.4
+# Python 3.9
 
 local curcontext="$curcontext" state state_descr line
 typeset -A opt_args
@@ -11,7 +11,9 @@ if _pick_variant python3=Python\ 3 python2 --version; then
   args=(
     '(-bb)-b[issue warnings about str(bytes_instance), str(bytearray_instance) and comparing bytes/bytearray with str]'
     '(-b)-bb[issue errors about str(bytes_instance), str(bytearray_instance) and comparing bytes/bytearray with str]'
+    '--check-hash-based-pycs[configure how Python evaluates up-to-dateness of hash-based .pyc files]:mode:(always default never)'
     "-I[isolate Python from the user's environment]"
+    '-q[do not print version and copyright messages]'
     '-X[set implementation-specific option]:option'
   )
 else
@@ -37,7 +39,8 @@ _arguments -C -s -S "$args[@]" \
   "-s[don't add user site directory to sys.path]" \
   "-S[don't imply 'import site' on initialization]" \
   '-u[unbuffered binary stdout and stderr]' \
-  '-v[verbose (trace import statements)]' \
+  '(-vv)-v[trace module initialization and cleanup]' \
+  '(-v)-vv[in addition to -v, trace all files checked when searching for a module]' \
   '(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]' \