mirror of
https://github.com/sharkdp/bat.git
synced 2026-10-26 20:16:33 +00:00
use _describe instead of _values on subcommand
This commit is contained in:
1 parent
9885d4ebf0
commit
41a1952928
1 file changed
+3
-1
Vendored
+3
-1
@@ -76,7 +76,9 @@ _bat_main() {
|
||||
|
||||
# first positional argument
|
||||
if (( ${#words} == 2 )); then
|
||||
_values subcommand cache
|
||||
local -a subcommands
|
||||
subcommands=('cache:Modify the syntax-definition and theme cache')
|
||||
_describe subcommand subcommands
|
||||
_bat_main
|
||||
else
|
||||
case $words[2] in
|
||||
|
||||
Reference in new issue
Block a user