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