Add --show-tooltips argument.

This commit is contained in:
Sergey Vartanov 2021-09-11 06:45:46 +03:00
parent 972e4798b0
commit 52301801cd
7 changed files with 65 additions and 10 deletions

View file

@ -16,6 +16,12 @@ BOXES_LENGTH: int = len(BOXES)
COMMANDS: dict[str, list[str]] = {
"render": ["render", "-b", "10.000,20.000,10.001,20.001"],
"render_with_tooltips": [
"render",
"-b",
"10.000,20.000,10.001,20.001",
"--show-tooltips",
],
"icons": ["icons"],
"mapcss": ["mapcss"],
"element": ["element", "--node", "amenity=bench,material=wood"],
@ -108,6 +114,12 @@ def add_map_arguments(parser: argparse.ArgumentParser) -> None:
help="seed for random",
metavar="<string>",
)
parser.add_argument(
"--show-tooltips",
help="add tooltips with tags for icons in SVG files",
action=argparse.BooleanOptionalAction,
default=False,
)
def add_tile_arguments(parser: argparse.ArgumentParser) -> None: