[thin_shrink] Support short options

This commit is contained in:
Ming-Hung Tsai 2021-07-05 15:56:47 +08:00
parent 1526ab3472
commit d00388f68a

View File

@ -18,6 +18,7 @@ fn main() {
Arg::with_name("INPUT") Arg::with_name("INPUT")
.help("Specify thinp metadata xml file") .help("Specify thinp metadata xml file")
.required(true) .required(true)
.short("i")
.long("input") .long("input")
.value_name("INPUT") .value_name("INPUT")
.takes_value(true), .takes_value(true),
@ -26,6 +27,7 @@ fn main() {
Arg::with_name("OUTPUT") Arg::with_name("OUTPUT")
.help("Specify output xml file") .help("Specify output xml file")
.required(true) .required(true)
.short("o")
.long("output") .long("output")
.value_name("OUTPUT") .value_name("OUTPUT")
.takes_value(true), .takes_value(true),