luttje / glua-api-snippets

Scrapes the Garry's Mod Wiki in order to build Lua Language Server comments that will provide IDE suggestions and autocompletion.
MIT License
18 stars 6 forks source link

CreateConVar signature wrong #24

Closed EntranceJew closed 1 year ago

EntranceJew commented 1 year ago

it thinks "helptext" is necessary, but it comes after a parameter with a nil default

luttje commented 1 year ago

Hey there, thanks for reporting this. However this is something that's incorrectly documented on the wiki and thus should be fixed there: https://wiki.facepunch.com/gmod/Global.CreateConVar

Vurv78 commented 9 months ago

It seems to work fine without any errors for me when only passing the first two arguments? Maybe this was recently fixed or changed?

Unless you meant that helptext wasn't documented properly, I do see that rubat recently made some changes to helptext default, but all he did was change from default="" to default=" " and then back to default=""..? Pretty weird

https://wiki.facepunch.com/gmod/Global.CreateConVar~diff:551538 https://wiki.facepunch.com/gmod/Global.CreateConVar~diff:551581

EntranceJew commented 9 months ago

after i posted about it, rubat changed the default style of empty arguments