Untitled

mail@pastecode.io avatar
unknown
python
a year ago
636 B
6
Indexable
Never
if __name__ == "__main__":


    parser = argparse.ArgumentParser(description='System Cleanup')
    parser.add_argument("-e", "--environment", nargs="*", type=str, required=True, help="Set the environment for the target system")
    parser.add_argument("-s", "--system", nargs="*", type=str, required=True, help="Set the target system")
    subs = parser.add_subparsers()
    subs.metavar = 'subcommand'
    sub = subs.add_parser("-y", help="Auto confirm execution without asking for confirmation")
    args = parser.parse_args()

    environment = args.environment
    system = args.sitestore

    print(environment)
    print(system)