mirror of
https://github.com/enzet/map-machine.git
synced 2025-04-28 17:57:11 +02:00
Add wrong element command handling.
This commit is contained in:
parent
ef359f83e9
commit
0e62e4ac90
1 changed files with 7 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
"""Entry point for element drawing: nodes, ways, and relations."""
|
||||
import argparse
|
||||
import logging
|
||||
from pathlib import Path
|
||||
|
||||
from map_machine.element.grid import Grid
|
||||
|
@ -48,3 +49,9 @@ def draw_element(options: argparse.Namespace):
|
|||
draw_way(tags_description, Path(options.output_file))
|
||||
elif options.type == "area":
|
||||
draw_area(tags_description, Path(options.output_file))
|
||||
else:
|
||||
logging.fatal(
|
||||
f"Unknown element type `{options.type}`, please choose from "
|
||||
f"`node`, `way`, and `area`."
|
||||
)
|
||||
exit(1)
|
||||
|
|
Loading…
Add table
Reference in a new issue