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

Improve parser for CLI arguments #44

Open
klntsky opened this issue Aug 11, 2020 · 0 comments
Open

Improve parser for CLI arguments #44

klntsky opened this issue Aug 11, 2020 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed low hanging fruit

Comments

@klntsky
Copy link
Collaborator

klntsky commented Aug 11, 2020

As for now, we do something like fromMaybe defaultCommands <$> getArgs where getArgs :: Effect (Maybe Commands). The default command is Search (i.e. start an interactive CLI session) with some reasonable defaults.

Thus, we are unable to pass arguments to the default command when it's not specified explicitly. E.g. this fails:

purescript-docs-search \
  --bower-jsons ".spago/*/*/bower.json" \
  --bower-jsons "bower_components/purescript-*/bower.json"
@klntsky klntsky added bug Something isn't working help wanted Extra attention is needed low hanging fruit labels Aug 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed low hanging fruit
Projects
None yet
Development

No branches or pull requests

1 participant