From bea4b69fea2f7170092c8abcde892ef64671aeb4 Mon Sep 17 00:00:00 2001 From: Oliver Gibbs Date: Fri, 14 Jan 2022 20:25:38 +1100 Subject: [PATCH] fix: updates to clap 3.0.0 --- cli/Cargo.toml | 4 ++-- cli/src/lib.rs | 2 +- core/Cargo.toml | 6 +----- utils/Cargo.toml | 5 +---- 4 files changed, 5 insertions(+), 12 deletions(-) diff --git a/cli/Cargo.toml b/cli/Cargo.toml index bdea419..a701a52 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -10,8 +10,8 @@ utils = { path = "../utils" } core = { path = "../core" } [dependencies.clap] -version = "3.0.0-beta.2" -features = ["yaml"] +version = "3.0.0" +features = ["cargo"] [dev-dependencies] assert_cmd = "1.0.1" diff --git a/cli/src/lib.rs b/cli/src/lib.rs index a21b615..9afca2b 100644 --- a/cli/src/lib.rs +++ b/cli/src/lib.rs @@ -46,7 +46,7 @@ pub fn cli_config() -> Result { .short('c') .long("config") .value_name("FILE") - .about("Set a custom config file") + .help("Set a custom config file") .takes_value(true), ) .subcommand(App::new("hazard").about("Generate a hazardous occurance")) diff --git a/core/Cargo.toml b/core/Cargo.toml index 826e877..d652076 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -9,8 +9,4 @@ edition = "2018" utils = { path = "../utils" } rand = "0.7.3" -log = "0.4.11" - -[dependencies.clap] -version = "3.0.0-beta.2" -features = ["yaml"] +log = "0.4.11" \ No newline at end of file diff --git a/utils/Cargo.toml b/utils/Cargo.toml index ef22466..1cd248b 100644 --- a/utils/Cargo.toml +++ b/utils/Cargo.toml @@ -17,7 +17,4 @@ slog-async = "2.5.0" slog-stdlog = "4.1.0" log = "0.4.11" serde = { version = "1.0", features = ["derive"]} - -[dependencies.clap] -version = "3.0.0-beta.2" -features = ["yaml"] +clap = "3.0.0"