Ejemplo n.º 1
0
def add_validate_command(sub_parsers):
    parser: ArgumentParser = sub_parsers.add_parser(
        "validate", help="Validate a pickup distribution.")

    prime_database.add_data_file_argument(parser)
    add_debug_argument(parser)
    parser.add_argument("layout_file",
                        type=Path,
                        help="The layout seed log file to validate.")
    parser.set_defaults(func=validate_command_logic)
Ejemplo n.º 2
0
def add_validate_command(sub_parsers):
    parser: ArgumentParser = sub_parsers.add_parser(
        "validate", help="Validate a pickup distribution.")

    prime_database.add_data_file_argument(parser)
    parser.add_argument("--debug",
                        choices=range(4),
                        type=int,
                        default=0,
                        help="The level of debug logging to print.")
    parser.add_argument("layout_file",
                        type=str,
                        nargs="?",
                        help="The layout seed log file to validate.")
    parser.set_defaults(func=validate_command_logic)
Ejemplo n.º 3
0
def add_batch_distribute_command(sub_parsers):
    parser: ArgumentParser = sub_parsers.add_parser(
        "batch-distribute", help="Generate multiple seeds in parallel")

    add_layout_configuration_arguments(parser)
    prime_database.add_data_file_argument(parser)
    parser.add_argument("starting_seed",
                        type=int,
                        help="The starting seed to generate.")
    parser.add_argument("seed_count",
                        type=int,
                        help="How many seeds to generate.")
    parser.add_argument("output_dir",
                        type=str,
                        help="Where to place the seed logs.")
    parser.set_defaults(func=batch_distribute_command_logic)
Ejemplo n.º 4
0
def add_distribute_command(sub_parsers):
    parser: ArgumentParser = sub_parsers.add_parser("distribute",
                                                    help="Distribute pickups.")

    add_layout_configuration_arguments(parser)
    prime_database.add_data_file_argument(parser)
    parser.add_argument("output_file",
                        type=str,
                        help="Where to place the seed log.")
    parser.add_argument("--debug",
                        choices=range(4),
                        type=int,
                        default=0,
                        help="The level of debug logging to print.")
    parser.add_argument("--seed",
                        type=int,
                        default=None,
                        help="The seed number to generate with.")
    parser.set_defaults(func=distribute_command_logic)