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

confused about mandatory options #56

Closed
simbo1905 opened this issue Dec 8, 2018 · 2 comments
Closed

confused about mandatory options #56

simbo1905 opened this issue Dec 8, 2018 · 2 comments
Labels

Comments

@simbo1905
Copy link

All my arguments are mandatory. I am confused about how to specify mandatory options so that I don't have to write logic to check all my args are passed.

@simbo1905 simbo1905 changed the title confused about mandatory optional confused about mandatory options Dec 8, 2018
@matejak
Copy link
Owner

matejak commented Dec 9, 2018

Hello, mandatory options are not supported by Argbash. I don't know your use case, but if you insist on required arguments, use positional arguments.
Required arguments with options are supported by some libraries, but they are generally considered bad practice, as this is not compliant neither with POSIX nor GNU CLI standards.

@simbo1905
Copy link
Author

That makes sense to me. I will go with the standards. Thanks!

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

No branches or pull requests

2 participants