Skip to content

Commit

Permalink
chore(interop): Update clap to 4.0.26 (#1162)
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto committed Nov 28, 2022
1 parent 933f560 commit b65b52b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion interop/Cargo.toml
Expand Up @@ -17,7 +17,7 @@ path = "src/bin/server.rs"
[dependencies]
async-stream = "0.3"
bytes = "1.0"
clap = {version = "3.2.1", features = ["derive"]}
clap = {version = "4.0.26", features = ["derive"]}
console = "0.14"
futures-core = "0.3"
futures-util = "0.3"
Expand Down
8 changes: 4 additions & 4 deletions interop/src/bin/client.rs
Expand Up @@ -9,11 +9,11 @@ struct Opts {
#[clap(name = "use_tls", long, action = ArgAction::SetTrue)]
use_tls: bool,

#[clap(
#[arg(
long = "test_case",
use_value_delimiter = true,
min_values = 1,
arg_enum,
num_args(1..),
value_enum,
action = ArgAction::Append
)]
test_case: Vec<Testcase>,
Expand Down Expand Up @@ -99,7 +99,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
Ok(())
}

#[derive(Debug, Copy, Clone, clap::ArgEnum)]
#[derive(Debug, Copy, Clone, clap::ValueEnum)]
#[clap(rename_all = "snake_case")]
enum Testcase {
EmptyUnary,
Expand Down

0 comments on commit b65b52b

Please sign in to comment.