'In Python, is there a way to make argparse sub-commands case insensitive?
From https://docs.python.org/3/library/argparse.html#sub-commands, is there a way to make the add_parser commands case insensitive?
E.g. I want to be able to read a sensor using 'read_sensor' or 'READ_SENSOR', for example.
I know we can make add_argument() commands case insensitive using the type parameter, but the add_parser command does not have a type parameter..
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
