in src/manifests_workflow/manifests_args.py [0:0]
def __init__(self):
parser = argparse.ArgumentParser(description="Manifest management")
parser.add_argument("action", choices=["list", "update"], help="Operation to perform.")
parser.add_argument(
"--type",
dest="type",
choices=["opensearch", "opensearch-dashboards"],
help="Only list manifests of a specific type.",
)
parser.add_argument(
"--keep",
dest="keep",
action="store_true",
help="Do not delete the working temporary directory.",
)
parser.add_argument(
"-v",
"--verbose",
help="Show more verbose output.",
action="store_const",
default=logging.INFO,
const=logging.DEBUG,
dest="logging_level",
)
args = parser.parse_args()
self.logging_level = args.logging_level
self.action = args.action
self.keep = args.keep
self.manifests = ManifestsArgs.__get_manifests(args.type)