mirror of
https://github.com/enzet/map-machine.git
synced 2025-06-08 22:01:51 +02:00
Issue #140: add scheme
option.
This commit is contained in:
parent
470feb4248
commit
edb69c902f
1 changed files with 7 additions and 0 deletions
|
@ -120,6 +120,13 @@ def parse_arguments(args: list[str]) -> argparse.Namespace:
|
||||||
|
|
||||||
def add_map_arguments(parser: argparse.ArgumentParser) -> None:
|
def add_map_arguments(parser: argparse.ArgumentParser) -> None:
|
||||||
"""Add map-specific arguments."""
|
"""Add map-specific arguments."""
|
||||||
|
parser.add_argument(
|
||||||
|
"--scheme",
|
||||||
|
metavar="<id> or <path>",
|
||||||
|
default="default",
|
||||||
|
help="scheme identifier (look for `<id>.yml` file) or path to a YAML "
|
||||||
|
"scheme file",
|
||||||
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--buildings",
|
"--buildings",
|
||||||
metavar="<mode>",
|
metavar="<mode>",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue