class StartAction(argparse.Action):

    def __init__(self, nargs=0, **kw):
        if nargs != 0:
            raise ValueError(
                'nargs for StartAction must be 0; it is just a flag.')
Argparse - Custom Action With No Argument?