5 ms·
Yes I thought it was an interesting code block :) Good on you for releasing it though. I would seriously look at using a library rather than rolling your own.
by benj111 8y ago
Yes I thought it was an interesting code block :)
Good on you for releasing it though.
I would seriously look at using a library rather than rolling your own. Sorting all the edge cases is a pain, they can automate help messages etc, gnu style long options etc. Unless of course you want to delve into the weeds of option parsing.
- WorldMaker 8y agoSince Python 3.2 argparse has been in the Python Standard Library: https://docs.python.org/3/library/argparse.html https://docs.python.org/3/library/argparse.html