zsh-workers
 help / color / mirror / code / Atom feed
From: Mikael Magnusson <mikachu@gmail.com>
To: zsh-workers@zsh.org
Subject: _arguments trips on dog
Date: Mon, 26 Dec 2022 10:07:46 +0100	[thread overview]
Message-ID: <CAHYJk3SXUWyzBb0k=Sz0=xFspeC1Nv94xy1Oghr9qV54tWNctg@mail.gmail.com> (raw)

I've used compdef _gnu_generic dog (among other commands) for some
time, but I suppose I recently updated dog and now, dog<tab> produces
this error:
_arguments:comparguments:327: invalid option definition:
-w[cols][print first 'cols' characters of each line (default=80)]

which is due to this line in dog --help output:
 -w[cols]               print first 'cols' characters of each line (default=80)

it looks like _arguments tries to handle things like -foo[=VALUE], but
the expected input here is -w10 or -w , not -w=10. Any takers? I took
a look at the code but I was nonplussed. I suppose it's somewhere
around line 245 or thereabouts. At the least, it would be nice to just
ignore it and still produce the rest of the completion, instead of
dumping errors in the terminal.

-- 
Mikael Magnusson


             reply	other threads:[~2022-12-26  9:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-26  9:07 Mikael Magnusson [this message]
2022-12-31  4:54 ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAHYJk3SXUWyzBb0k=Sz0=xFspeC1Nv94xy1Oghr9qV54tWNctg@mail.gmail.com' \
    --to=mikachu@gmail.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).