start_check_stop = parser.add_mutually_exclusive_group()
start_check_stop.add_argument('-s', '--start', action=start(*what*))
start_check_stop.add_argument('-c', '--check', action=check(*what*))
start_check_stop.add_argument('-t', '--stop', action=stop(*what*))
What do I need to pass in the spot labeled what in order to pass the given command line argument to the function?
Your action should extend the
argparse.Actionclass which already has variable for passing the argument values. The parameter in your action call is unnecessary.