Describe defaults in help
This commit is contained in:
10
src/main.rs
10
src/main.rs
@@ -49,7 +49,7 @@ fn main() {
|
|||||||
.short("c")
|
.short("c")
|
||||||
.long("count")
|
.long("count")
|
||||||
.value_name("COUNT")
|
.value_name("COUNT")
|
||||||
.help("Number of simultanious threads")
|
.help("Number of simultanious threads (def: 4)")
|
||||||
.takes_value(true))
|
.takes_value(true))
|
||||||
.arg(Arg::with_name("image")
|
.arg(Arg::with_name("image")
|
||||||
.short("i")
|
.short("i")
|
||||||
@@ -62,25 +62,25 @@ fn main() {
|
|||||||
.short("w")
|
.short("w")
|
||||||
.long("width")
|
.long("width")
|
||||||
.value_name("PIXELS")
|
.value_name("PIXELS")
|
||||||
.help("Drawing width in pixels")
|
.help("Drawing width in pixels (def: 1920)")
|
||||||
.takes_value(true))
|
.takes_value(true))
|
||||||
.arg(Arg::with_name("height")
|
.arg(Arg::with_name("height")
|
||||||
.short("h")
|
.short("h")
|
||||||
.long("height")
|
.long("height")
|
||||||
.value_name("PIXELS")
|
.value_name("PIXELS")
|
||||||
.help("Drawing height in pixels")
|
.help("Drawing height in pixels (def: 1080)")
|
||||||
.takes_value(true))
|
.takes_value(true))
|
||||||
.arg(Arg::with_name("x")
|
.arg(Arg::with_name("x")
|
||||||
.short("x")
|
.short("x")
|
||||||
.long("x")
|
.long("x")
|
||||||
.value_name("PIXELS")
|
.value_name("PIXELS")
|
||||||
.help("Drawing X offset in pixels")
|
.help("Drawing X offset in pixels (def: 0)")
|
||||||
.takes_value(true))
|
.takes_value(true))
|
||||||
.arg(Arg::with_name("y")
|
.arg(Arg::with_name("y")
|
||||||
.short("y")
|
.short("y")
|
||||||
.long("y")
|
.long("y")
|
||||||
.value_name("PIXELS")
|
.value_name("PIXELS")
|
||||||
.help("Drawing Y offset in pixels")
|
.help("Drawing Y offset in pixels (def: 0)")
|
||||||
.takes_value(true))
|
.takes_value(true))
|
||||||
.get_matches();
|
.get_matches();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user