Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 1.21 KB

README.md

File metadata and controls

32 lines (23 loc) · 1.21 KB

fuzzyargparse

About

Python argparse extension with hints on unknown arguments.

Build Status Coverage Status Code Climate

License

The MIT License.

Dependencies

Fuzzyargparse uses:

How to use:

import fuzzyargparse
parser = fuzzyargparse.FuzzyArgumentParser()
parser.add_argument("-o", "--option")
parser.add_argument("-a", "--another")
parser.parse_args()

Sample output:

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)