1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 10:42:34 +01:00

let zsh completion immediately suggest cmdline options

instead of expecting an URL and trying to complete it.
This commit is contained in:
Mike Fährmann 2020-07-05 22:36:00 +02:00
parent c28db7a6ea
commit 74494b43d3
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -7,7 +7,7 @@
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
"""Generate bash completion script from gallery-dl's argument parser"""
"""Generate zsh completion script from gallery-dl's argument parser"""
import util
from gallery_dl import option
@ -20,8 +20,7 @@ typeset -A opt_args
local rc=1
_arguments -C -S \\
%(opts)s \\
'*:URL:_urls' && rc=0
%(opts)s && rc=0
return rc
"""