You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Vimdoc should warn for command argument mismatch #84
Vimdoc issues an ArgumentMismatch warning if actual function arguments don't match those declared in the doc block, but it's not checking command arguments at all. It should issue a warning when it detects a mismatch, e.g. the doc block declares an argument but the command has -nargs=0.
Opened #153 for the zero-argument mismatch example. The parser preserves -nargs, and generated usage that declares parameters now warns when the command accepts none, including implicit -nargs=0.
Two acceptance cases fail on upstream; all 13 local tests and 4 subtests pass with the change. Controls cover argument-accepting commands and built-in modifiers. The PR deliberately does not infer semantic parameters within a single free-form command argument.
Activity
vinsymoyya commentedon Nov 14, 2026
Opened #153 for the zero-argument mismatch example. The parser preserves
-nargs, and generated usage that declares parameters now warns when the command accepts none, including implicit-nargs=0.Two acceptance cases fail on upstream; all 13 local tests and 4 subtests pass with the change. Controls cover argument-accepting commands and built-in modifiers. The PR deliberately does not infer semantic parameters within a single free-form command argument.