Comment faire de python argparse mutuellement exclusifs groupe arguments sans préfixe?

Python2.7 argparse accepte uniquement les arguments optionnels (préfixé) dans les groupes mutuellement exclusifs:

parser = argparse.ArgumentParser(prog='mydaemon')
action = parser.add_mutually_exclusive_group(required=True)
action.add_argument('--start', action='store_true', help='Starts %(prog)s daemon')
action.add_argument('--stop', action='store_true', help='Stops %(prog)s daemon')
action.add_argument('--restart', action='store_true', help='Restarts %(prog)s daemon')

$ mydaemon -h

usage: mydaemon [-h] (--start | --stop | --restart)

optional arguments:
  -h, --help  show this help message and exit
  --start     Starts mydaemon daemon
  --stop      Stops mydaemon daemon
  --restart   Restarts mydaemon daemon

Est-il un moyen de faire argparse arguments se comporte comme unix traditionnel démon de contrôle:

(start | stop | restart) and not (--start | --stop | --restart) ?
InformationsquelleAutor Carlo Pires | 2011-10-23