Refactors (including optparse β argparse), and add long options #35
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi! I had fun with this one. π Let me know if you prefer that I break out separate PRs for the individual refactor commits. I kept them in one PR for now since the "business value" for the first two isn't as clear until you get to the point of adding long options (where using
snake_case
gets you a free implicitdest
parameter). Though IMO the majority of the value is in consistency with broader Python ecosystem conventions.(Which, admittedly, is funny to see alongside the
camelCase
API for the agingunittest
module. π€¦π»ββοΈ I still think it's worth usingsnake_case
overall outside of those API calls tho, personally.)If you object to any part of this that's totally fine - I had fun and learned a bunch doing these so the effort wasn't wasted regardless. π I'm happy to make any changes you prefer. I made a few executive decisions along the way, any of which you, as the maintainer, are of course welcome to disagree with and request changes to.