def arg_delete(self): doParser = ArgumentParser(prog=self.cmd_name+" delete", add_help = True, description="Deletes an existing cloud account") mandatory = doParser.add_argument_group("mandatory arguments") mandatory.add_argument('--id', dest='id', required=True, help="the ID of the cloud account to delete") optional = doParser.add_argument_group("optional arguments") optional.add_argument('--no-confirm', dest='no_confirm', action='store_true', required=False, help="do not ask before delete the cloud account") doParser.set_defaults(no_confirm=False) return doParser