mirror of
https://github.com/enzet/map-machine.git
synced 2025-06-01 10:21:54 +02:00
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:
parent
54f6b17fdc
commit
eba1ed1606
2 changed files with 16 additions and 19 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue