Is it possible to check argparse choices in case-insensitive manner?
import argparse choices = [\"win64\", \"win32\"] parser = argparse.ArgumentParser() pars
Keeping the case information would also be possible with a one liner:
type = lambda arg: {x.lower(): x for x in choices}[arg.lower()],
Where choices would be the same list as passed to the choices parameter.