erg-lang / erg

A statically typed language compatible with Python
http://erg-lang.org
Apache License 2.0
2.65k stars 55 forks source link

Display a similar name when an invalid option is passed #289

Open mtshiba opened 1 year ago

mtshiba commented 1 year ago

There is a function called get_similar_name in the erg_common::levenstein module, so it would be easy to achieve this by defining an array of option names as a const.