Пример #1
0
def create_subparsers(sub_parsers):
    parser: ArgumentParser = sub_parsers.add_parser(
        "echoes", help="Actions regarding Metroid Prime 2: Echoes")
    sub_parsers = parser.add_subparsers(dest="command")
    add_validate_command(sub_parsers)
    add_distribute_command(sub_parsers)
    add_batch_distribute_command(sub_parsers)
    prime_database.create_subparsers(sub_parsers)

    def check_command(args):
        if args.command is None:
            parser.print_help()
            raise SystemExit(1)

    parser.set_defaults(func=check_command)
Пример #2
0
def create_subparsers(root_parser):
    echoes.create_subparsers(root_parser)
    prime_database.create_subparsers(root_parser)
    multiworld.create_subparsers(root_parser)
    gui.create_subparsers(root_parser)
Пример #3
0
def create_subparsers(root_parser):
    echoes.create_subparsers(root_parser)
    prime_database.create_subparsers(root_parser)
    server.create_subparsers(root_parser)
    gui.create_subparsers(root_parser)
Пример #4
0
def create_subparsers(root_parser):
    from randovania.cli import echoes, server, gui, prime_database
    echoes.create_subparsers(root_parser)
    prime_database.create_subparsers(root_parser)
    server.create_subparsers(root_parser)
    gui.create_subparsers(root_parser)