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

How to make an option required? #2

Open
FrankDMartinez opened this issue Mar 20, 2021 · 1 comment
Open

How to make an option required? #2

FrankDMartinez opened this issue Mar 20, 2021 · 1 comment

Comments

@FrankDMartinez
Copy link

While I might have missed it in the documentation, I saw nothing about how to make an option mandatory. Can Anyone point Me in the direction of such information?

Thanks in advance.

@itzg
Copy link
Owner

itzg commented Mar 20, 2021

Since this library builds on the built-in flags package, I hadn't yet found a way to make it indicate an error for required arguments that are missing. As a result, I resort to adding explicit conditionals after the flag loading to check for unset arguments.

Repository owner deleted a comment Mar 5, 2022
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

2 participants