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

Don't pattern match output of OptionParser #241

Open
nappex opened this issue Aug 25, 2024 · 1 comment
Open

Don't pattern match output of OptionParser #241

nappex opened this issue Aug 25, 2024 · 1 comment

Comments

@nappex
Copy link
Collaborator

nappex commented Aug 25, 2024

Don't pattern match output of OptionParser instead use Keyword.get to obtain value for specific switch or information about using a particular switch on cli.

see:
keyword ordering official docs
https://blog.appsignal.com/2022/08/09/write-a-standalone-cli-application-in-elixir.html

@Glutexo
Copy link
Owner

Glutexo commented Nov 9, 2024

Maybe don’t use it too much, not not use it at all.

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

No branches or pull requests

2 participants