I am trying to achieve something like this:
python main.py --severity high --start_date 10/12/2016
python main.py --name samuel
Here, the argument --start_date arg will only be valid if previous argument is --severity. If we have --name instead of --severity. The argparse should return error. How do I achieve this? I have looked for a while and couldn't find something that I wanted to do.