Skip to content

Instantly share code, notes, and snippets.

@timothycrosley
Created May 24, 2016 21:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timothycrosley/9ce9e8631068695c6cd44c39dd3add33 to your computer and use it in GitHub Desktop.
Save timothycrosley/9ce9e8631068695c6cd44c39dd3add33 to your computer and use it in GitHub Desktop.
@hug.cli(validate=contains_one_of('argument_one', 'argument_two')) # you can combine these to make more then one mutually exclusive group
def mutually_exclusive_group(argument_one: type, argument_two: type):
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment