mpeterv / argparse

Feature-rich command line parser for Lua
MIT License
251 stars 43 forks source link

choices property is not recognized #24

Closed Sledmine closed 4 years ago

Sledmine commented 4 years ago

Reading "the docs" of the argparse it says there is a property on every argument called choices, where you can set wich values are accepted for that argument, but that property doesn't exist

Sledmine commented 4 years ago

My bad, I saw that the documentation covered on the docs is for the luarocks version, getting that version now!

sundayz commented 4 years ago

The luarocks package doesn't seem to have the choices() function either, and both the github code and luarocks code are version 0.6.0

p-ouellette commented 4 years ago

Version 0.7.0 is at https://luarocks.org/modules/argparse/argparse