From 8e6797fcdc0f87b9e7ff200404c1761952a102ed Mon Sep 17 00:00:00 2001 From: molikuner Date: Fri, 13 Oct 2023 06:31:13 +0200 Subject: [PATCH] Fix syntax error in ZSH completion GH-60 --- completions/doggo.zsh | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/completions/doggo.zsh b/completions/doggo.zsh index 9215ea9..7f1b56a 100644 --- a/completions/doggo.zsh +++ b/completions/doggo.zsh @@ -1,6 +1,6 @@ -#compdef doggo +#compdef _doggo doggo -__doggo() { +_doggo() { _arguments \ "(- 1 *)"{-v,--version}"[Show version of doggo]" \ "(- 1 *)"{-\?,--help}"[Show list of command-line options]" \ @@ -9,10 +9,8 @@ __doggo() { {-n,--nameserver}"[Address of a specific nameserver to send queries to]::_hosts;" \ {-c,--class}"[Network class of the DNS record being queried]:(network class):(IN CH HS)" \ {-J,--json}"[Format the output as JSON]" \ - {--color}"[Defaults to true. Set --color=false to disable colored output]:(setting):(true false)" \ - {--debug}"[Enable debug logging]:(setting):(true false)" \ - --time"[Shows how long the response took from the server"] \ - '*:filename:_hosts' + --color"[Defaults to true. Set --color=false to disable colored output]:(setting):(true false)" \ + --debug"[Enable debug logging]:(setting):(true false)" \ + --time"[Shows how long the response took from the server]" \ + '*:hostname:_hosts' } - -__doggo