I want to run my python program from the command line with some options. E.g. say my program has 4 modes, and I want it to use mode 2 by giving it the following arguments:
$ python main.py --mode 2 (And similarly for modes 1, 3, 4). How can I achieve this using argparse?