Skip to content

Commit

Permalink
Fix #22: boundary box argument.
Browse files Browse the repository at this point in the history
  • Loading branch information
enzet committed Sep 18, 2020
1 parent 7f19a4d commit 34157d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions roentgen/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 34157d9

Please sign in to comment.