Preprocess arguments to fix leading minus issue.

`argparse` treats argument of `--coordinates` and `--boundary-box` as
other option if it starts with `-`.  The new solution is to preprocess
arguments adding leading space to the argument value.
This commit is contained in:
Sergey Vartanov 2022-10-30 11:48:11 +04:00
parent 54f6b17fdc
commit eba1ed1606
2 changed files with 16 additions and 19 deletions

View file

@ -9,7 +9,7 @@ from map_machine.osm.osm_reader import Tags, OSMNode
def draw_node(tags: Tags, path: Path):
"""Draw separate node."""
grid: Grid = Grid(show_credit=False, margin=3.5)
grid: Grid = Grid(show_credit=False, margin=7.5)
grid.add_node(tags, 0, 0)
grid.draw(path)