Skip to content

Any option to mark a flag as required ?  #4

@ieugen

Description

@ieugen

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions