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

Add ability to mark flags as required or exclusive as a group #1654

Merged
merged 1 commit into from Apr 17, 2022

Commits on Apr 14, 2022

  1. Add ability to mark flags as required or exclusive as a group

    This change adds two features for dealing with flags:
     - requiring flags be provided as a group (or not at all)
     - requiring flags be mutually exclusive of each other
    
    By utilizing the flag annotations we can mark which flag groups
    a flag is a part of and during the parsing process we track which
    ones we have seen or not.
    
    A flag may be a part of multiple groups. The list of flags and the
    type of group (required together or exclusive) make it a unique group.
    
    Signed-off-by: John Schnake <jschnake@vmware.com>
    johnSchnake committed Apr 14, 2022
    Copy the full SHA
    c437f2c View commit details
    Browse the repository at this point in the history