trentm / python-markdown2

markdown2: A fast and complete implementation of Markdown in Python
Other
2.66k stars 433 forks source link

Replace deprecated `optparse` with `argparse` #502

Closed Crozzers closed 1 year ago

Crozzers commented 1 year ago

optparse was deprecated since Python 3.2. This PR removes it in favour of the more modern argparse library

nicholasserra commented 1 year ago

Thanks! Looks like this breaks the --version and --usage args. Can those be wired back in?

Crozzers commented 1 year ago

Cool, thanks for pointing that out