mirror of
https://github.com/enzet/map-machine.git
synced 2025-06-03 19:31:52 +02:00
Add --coordinates and --size arguments.
Construct boundary box from center coordinates and size.
This commit is contained in:
parent
cb440e8a8b
commit
b715e12924
8 changed files with 156 additions and 114 deletions
|
@ -6,7 +6,7 @@ import logging
|
|||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
from map_machine.ui import parse_options
|
||||
from map_machine.ui import parse_arguments
|
||||
from map_machine.workspace import Workspace
|
||||
|
||||
__author__ = "Sergey Vartanov"
|
||||
|
@ -18,7 +18,7 @@ def main() -> None:
|
|||
logging.basicConfig(format="%(levelname)s %(message)s", level=logging.INFO)
|
||||
workspace: Workspace = Workspace(Path("out"))
|
||||
|
||||
arguments: argparse.Namespace = parse_options(sys.argv)
|
||||
arguments: argparse.Namespace = parse_arguments(sys.argv)
|
||||
|
||||
if not arguments.command:
|
||||
logging.fatal("No command provided. See --help.")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue