diff --git a/kbinxml_cli/Cargo.toml b/kbinxml_cli/Cargo.toml index f1252d2..b9d3ade 100644 --- a/kbinxml_cli/Cargo.toml +++ b/kbinxml_cli/Cargo.toml @@ -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" diff --git a/kbinxml_cli/src/main.rs b/kbinxml_cli/src/main.rs index c2fe612..5385852 100644 --- a/kbinxml_cli/src/main.rs +++ b/kbinxml_cli/src/main.rs @@ -59,20 +59,20 @@ fn main() -> Result<(), anyhow::Error> { .version(env!("CARGO_PKG_VERSION")) .author("Matt Bilker ") .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),