Describe defaults in help

This commit is contained in:
Tim Visée
2017-12-29 23:33:07 +01:00
parent 80929150e3
commit 20083d9fca

View File

@@ -49,7 +49,7 @@ fn main() {
.short("c")
.long("count")
.value_name("COUNT")
.help("Number of simultanious threads")
.help("Number of simultanious threads (def: 4)")
.takes_value(true))
.arg(Arg::with_name("image")
.short("i")
@@ -62,25 +62,25 @@ fn main() {
.short("w")
.long("width")
.value_name("PIXELS")
.help("Drawing width in pixels")
.help("Drawing width in pixels (def: 1920)")
.takes_value(true))
.arg(Arg::with_name("height")
.short("h")
.long("height")
.value_name("PIXELS")
.help("Drawing height in pixels")
.help("Drawing height in pixels (def: 1080)")
.takes_value(true))
.arg(Arg::with_name("x")
.short("x")
.long("x")
.value_name("PIXELS")
.help("Drawing X offset in pixels")
.help("Drawing X offset in pixels (def: 0)")
.takes_value(true))
.arg(Arg::with_name("y")
.short("y")
.long("y")
.value_name("PIXELS")
.help("Drawing Y offset in pixels")
.help("Drawing Y offset in pixels (def: 0)")
.takes_value(true))
.get_matches();