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

Expose the configParser function #3

Open
seagreen opened this issue Mar 11, 2019 · 1 comment
Open

Expose the configParser function #3

seagreen opened this issue Mar 11, 2019 · 1 comment

Comments

@seagreen
Copy link

Right now if you're making an executable you can either use defaultMain to get preset command line options, or you can write your own from scratch, but there's no way to do what bin/Main.hs does and augment the configParser with additional command line options.

This could be useful for writing a benchmark for a specific problem domain where you want all the normal configParser options available, plus some others for the problem domain.

PS: I'm incredibly excited about this project.

@seagreen
Copy link
Author

On thing this won't help with is projects that need to use something like configParser but with adjustments.

For instance I realized my current project needs to change it to note that --timeout is set by default to X seconds.

So it's most convenient for me to just copy the code from common/Parser.hs into my project and modify it. If most other projects end up doing the same then exposing configParser isn't necessary.

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

1 participant