From 1ef84d91126e8a09b145d864e7a965227a7f019d Mon Sep 17 00:00:00 2001 From: Felix Date: Wed, 2 Feb 2022 03:21:47 +0000 Subject: [PATCH] kbinxml_cli(cargo): upgrade to clap 3.0.14 --- kbinxml_cli/Cargo.toml | 2 +- kbinxml_cli/src/main.rs | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) 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),