zsh-workers
 help / color / mirror / code / Atom feed
* _arguments trips on dog
@ 2022-12-26  9:07 Mikael Magnusson
  2022-12-31  4:54 ` Bart Schaefer
  0 siblings, 1 reply; 2+ messages in thread
From: Mikael Magnusson @ 2022-12-26  9:07 UTC (permalink / raw)
  To: zsh-workers

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-12-31  4:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-26  9:07 _arguments trips on dog Mikael Magnusson
2022-12-31  4:54 ` Bart Schaefer

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).