diff --git a/Cargo.toml b/Cargo.toml index 9e013256..f079ff41 100755 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,7 +15,7 @@ bitflags = "1.0" byteorder = "1.0" cc = "1.0" chrono = "0.4" -clap = "2.29" +clap = "3.0.0-beta.2" crossbeam = "0.5" crossbeam-channel = "0.3.9" csv = "1.0" diff --git a/src/cli/arguments/clap-basic.md b/src/cli/arguments/clap-basic.md index 0dbcafa1..1775b46c 100644 --- a/src/cli/arguments/clap-basic.md +++ b/src/cli/arguments/clap-basic.md @@ -19,16 +19,16 @@ fn main() { .version("0.1.0") .author("Hackerman Jones ") .about("Teaches argument parsing") - .arg(Arg::with_name("file") - .short("f") + .arg(Arg::new("file") + .short('f') .long("file") .takes_value(true) - .help("A cool file")) - .arg(Arg::with_name("num") - .short("n") + .about("A cool file")) + .arg(Arg::new("num") + .short('n') .long("number") .takes_value(true) - .help("Five less than your favorite number")) + .about("Five less than your favorite number")) .get_matches(); let myfile = matches.value_of("file").unwrap_or("input.txt");