google / vimdoc

Helpfile generation for vim
Apache License 2.0
291 stars 28 forks source link

Vimdoc should warn for command argument mismatch #84

Open dbarnett opened 9 years ago

dbarnett commented 9 years ago

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.