summaryrefslogtreecommitdiffstats
path: root/dimension/dimension.in
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2011-07-29 11:23:19 -0600
committerTavian Barnes <tavianator@gmail.com>2011-07-29 11:23:19 -0600
commit4f70d4a893ed239416225231b531beb590fa6201 (patch)
tree9fbbcd239be2c4c18fceb715f0ed6b841e9ea60b /dimension/dimension.in
parent5a8b1d413e98abd10b8ca6b1eb5eb91987f39ebf (diff)
downloaddimension-4f70d4a893ed239416225231b531beb590fa6201.tar.xz
Change --region format.
Diffstat (limited to 'dimension/dimension.in')
-rw-r--r--dimension/dimension.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/dimension/dimension.in b/dimension/dimension.in
index b81f44b..f64cb60 100644
--- a/dimension/dimension.in
+++ b/dimension/dimension.in
@@ -52,7 +52,7 @@ _parser.add_argument("-h", "--height", action = "store", type = int,
default = 480, help = "image height")
_parser.add_argument("--region", action = "store", type = str,
default = None,
- help = "subregion to render, as \"((x1, y1), (x2, y2))\"")
+ help = "subregion to render, as \"(x1, y1)->(x2, y2)\"")
_parser.add_argument("-v", "--verbose", action = "store_true",
help = "print more information")
@@ -82,7 +82,7 @@ if _args.region is None:
_args.region_width = _args.width
_args.region_height = _args.height
else:
- _pattern = r"^\s*\(\s*\(\s*(\d*)\s*,\s*(\d*)\s*\)\s*,\s*\(\s*(\d*)\s*,\s*(\d*)\s*\)\s*\)\s*$"
+ _pattern = r"^\s*\(\s*(\d*)\s*,\s*(\d*)\s*\)\s*->\s*\(\s*(\d*)\s*,\s*(\d*)\s*\)\s*$"
_match = _re.match(_pattern, _args.region)
if _match is None:
raise RuntimeError("range specified in invalid format.")