Skip to content
This repository has been archived by the owner on Oct 4, 2022. It is now read-only.

Use a real argument parser #19

Open
dgw opened this issue Sep 28, 2017 · 0 comments
Open

Use a real argument parser #19

dgw opened this issue Sep 28, 2017 · 0 comments
Assignees

Comments

@dgw
Copy link
Owner

dgw commented Sep 28, 2017

I've been avoiding work on #5 and #8 (and anything else related to arg parsing) for ages because it's just so annoying to deal in regex. So I'm making a decision: This module should use a real argument parser.

Since argparse is included in Python's standard library, that's probably the way to go. It looks like splitting the input into a list of strings and passing it to the parser will work (according to docs.python.org), and as long as parsing arbitrary argument lists is possible (since sys.argv is irrelevant to this application), everything else is just a matter of reading the docs.

@dgw dgw self-assigned this Sep 28, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant