diff options
author | Tavian Barnes <tavianator@gmail.com> | 2011-07-29 11:31:24 -0600 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2011-07-29 11:31:24 -0600 |
commit | 85baaa87134598ec8f4a5720f666b4dd4a7f63ed (patch) | |
tree | e0d334d98e43ecb6b195715b60b79516df78f628 | |
parent | 4f70d4a893ed239416225231b531beb590fa6201 (diff) | |
download | dimension-85baaa87134598ec8f4a5720f666b4dd4a7f63ed.tar.xz |
Print argument defaults in --help.
-rw-r--r-- | dimension/dimension.in | 7 |
1 files 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", |