def service(subparser): subparser.add_argument("action", help="The action to perform (start, stop, etc...)") subparser.add_argument("service_name", help="Name of the service to control") return host.service