mirror of
https://github.com/enzet/map-machine.git
synced 2025-06-05 04:12:08 +02:00
Fix #22: boundary box argument.
This commit is contained in:
parent
7f19a4d7f0
commit
34157d9d73
1 changed files with 2 additions and 2 deletions
|
@ -33,7 +33,7 @@ def parse_options(args):
|
|||
"-b", "--boundary-box",
|
||||
dest="boundary_box",
|
||||
metavar="<lon1>,<lat1>,<lon2>,<lat2>",
|
||||
help="geo boundary box, use \"m\" instead of \"-\" for negative values",
|
||||
help="geo boundary box, use space before \"-\" for negative values",
|
||||
required=True)
|
||||
parser.add_argument(
|
||||
"-s", "--scale",
|
||||
|
@ -90,7 +90,7 @@ def parse_options(args):
|
|||
arguments = parser.parse_args(args[1:])
|
||||
|
||||
if arguments.boundary_box:
|
||||
arguments.boundary_box = arguments.boundary_box.replace("m", "-")
|
||||
arguments.boundary_box = arguments.boundary_box.replace(" ", "")
|
||||
|
||||
return arguments
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue