Python argparse extension with hints on unknown arguments.
Fuzzyargparse uses:
- fuzzywuzzy is used for fuzzy string matching
- python-Levenshtein should be installed for performance increase
import fuzzyargparse
parser = fuzzyargparse.FuzzyArgumentParser()
parser.add_argument("-o", "--option")
parser.add_argument("-a", "--another")
parser.parse_args()
usage: app.py [-h] [-o OPTION] [-a ANOTHER]
app.py: error: unrecognized arguments: --optionz value --nother 123
did you mean: --option (was: --optionz)
did you mean: --another (was: --nother)