Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Compositional parsing #107

Open
haf opened this issue Mar 10, 2018 · 1 comment
Open

feat: Compositional parsing #107

haf opened this issue Mar 10, 2018 · 1 comment

Comments

@haf
Copy link
Member

haf commented Mar 10, 2018

Now that more and more projects are starting to use Argu (at least for myself, that is true), it would be neat to be able to chain parsing of parameters together, when parameters are used to configure multiple things. Example: I have a canopy test suite that takes configuration both from environment variables and command line flags; it in turn runs on Expecto which takes configuration from both env and flags, as well. Right now, I have to explicitly tell Argu to ignore unknown inputs and manually compose (imperatively) the two parsers.

It would be nice with an API that would let me parse a union of Argument-type DUs.

@ndalchau
Copy link
Contributor

I've been thinking the same. I have also ended up composing two parsers by ignoring unrecognised inputs.

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

No branches or pull requests

3 participants