Module Contents



Multipe-choice options for typer.[source]

Multipe-choice options for typer.

This is a convenicence function that creates string Enums to be used as the type of command-line arguments that can take a fixed set of values. For example, the command:

def main(arg: Choices('value1 value2')):

takes one argument that may either have the value value1 or the value value2.