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

Any option to mark a flag as required ? #4

Open
ieugen opened this issue Mar 26, 2024 · 1 comment
Open

Any option to mark a flag as required ? #4

ieugen opened this issue Mar 26, 2024 · 1 comment

Comments

@ieugen
Copy link

ieugen commented Mar 26, 2024

Hi,

Any option to mark a field as required?

In the example bellow I have 2 string fields (file names) that are required.
I imagine this can be done with validation, but it's a common thing.

nebula-cert verify
Error: -ca is required
Usage of nebula-cert verify <flags>: verifies a certificate isn't expired and was signed by a trusted authority.
  -ca string
        Required: path to a file containing one or more ca certificates
  -crt string
        Required: path to a file containing a single certificate
@plexus
Copy link
Member

plexus commented Apr 3, 2024

Not currently supported, PR welcome.

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