Skip to content

Use pico-args for arg parsing#31

Merged
KillingSpark merged 1 commit intoKillingSpark:masterfrom
MggMuggins:master
Mar 9, 2020
Merged

Use pico-args for arg parsing#31
KillingSpark merged 1 commit intoKillingSpark:masterfrom
MggMuggins:master

Conversation

@MggMuggins
Copy link
Contributor

I'm not sure if this is really much better than it was before, it would
be handy for the parse_args func to do all the validation and pass back
a consistent error type with a possibility for some other errors wrapped
up in some of the variants.

I ran the tests (not sure if they use the arg parsing or not :D), and
tested with a couple of arg combos and it seems to work.

Regardless of caveats, feel free to merge or close this PR, pico-args is
just one option for arg-parsing. This code could also use improvement,
I'm happy to incorporate feedback.

I'm not sure if this is really much better than it was before, it would
be handy for the parse_args func to do all the validation and pass back
a consistent error type with a possibility for some other errors wrapped
up in some of the variants.

I ran the tests (not sure if they use the arg parsing or not :D), and
tested with a couple of arg combos and it seems to work.

Regardless of caveats, feel free to merge or close this PR, pico-args is
just one option for arg-parsing. This code could also use improvement,
I'm happy to incorporate feedback.
@KillingSpark
Copy link
Owner

Thanks! Not having to worry about tedious arg parsing for future options is quite helpful :)

@KillingSpark KillingSpark merged commit 96ad15f into KillingSpark:master Mar 9, 2020
@KillingSpark
Copy link
Owner

I think the error variants is not too important right now. It would of course be nice but it's just polishing.

@MggMuggins
Copy link
Contributor Author

Yeah, that's what I figured. Do ping me if it ever gets to a point when that would be required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants