From 85baaa87134598ec8f4a5720f666b4dd4a7f63ed Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Fri, 29 Jul 2011 11:31:24 -0600 Subject: Print argument defaults in --help. --- dimension/dimension.in | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dimension/dimension.in b/dimension/dimension.in index f64cb60..9577d51 100644 --- a/dimension/dimension.in +++ b/dimension/dimension.in @@ -47,11 +47,12 @@ _parser.add_argument("-V", "--version", action = "version", version = "@PACKAGE_STRING@") _parser.add_argument("-w", "--width", action = "store", type = int, - default = 768, help = "image width") + default = 768, + help = "image width (default: %(default)s)") _parser.add_argument("-h", "--height", action = "store", type = int, - default = 480, help = "image height") + default = 480, + help = "image height (default: %(default)s)") _parser.add_argument("--region", action = "store", type = str, - default = None, help = "subregion to render, as \"(x1, y1)->(x2, y2)\"") _parser.add_argument("-v", "--verbose", action = "store_true", -- cgit v1.2.3