kbinxml_cli(cargo): upgrade to clap 3.0.14

This commit is contained in:
Felix
2022-02-02 03:21:47 +00:00
parent 917d626212
commit 1ef84d9112
2 changed files with 6 additions and 6 deletions

View File

@@ -9,7 +9,7 @@ edition = "2018"
[dependencies]
anyhow = "1.0.19"
byteorder = "1.3.2"
clap = "2.32.0"
clap = "3.0.14"
encoding_rs = "0.8.6"
kbinxml = { path = "../kbinxml" }
pretty_env_logger = "0.4.0"

View File

@@ -59,20 +59,20 @@ fn main() -> Result<(), anyhow::Error> {
.version(env!("CARGO_PKG_VERSION"))
.author("Matt Bilker <me@mbilker.us>")
.arg(
Arg::with_name("printer")
Arg::new("printer")
.help("Turn on the NodeCollection and NodeDefinition debug printer")
.short("p")
.short('p')
.long("printer"),
)
.arg(
Arg::with_name("encoding")
Arg::new("encoding")
.help("Set the encoding used when encoding kbin data")
.short("e")
.short('e')
.long("encoding")
.takes_value(true),
)
.arg(
Arg::with_name("input")
Arg::new("input")
.help("The file to convert")
.index(1)
.required(true),