Skip to content

Vimdoc should warn for command argument mismatch #84

Open

Description

@dbarnett

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.

Activity

  1. vinsymoyya commented on Nov 14, 2026

    @vinsymoyya

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions