Skip to content

Commit

Permalink
apache#2817: Update to clap 4
Browse files Browse the repository at this point in the history
  • Loading branch information
jgoday committed Oct 3, 2022
1 parent 76da624 commit b879fd1
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion integration-testing/Cargo.toml
Expand Up @@ -34,7 +34,7 @@ logging = ["tracing-subscriber"]
arrow = { path = "../arrow", default-features = false, features = ["test_utils", "ipc", "ipc_compression", "json"] }
arrow-flight = { path = "../arrow-flight", default-features = false }
async-trait = { version = "0.1.41", default-features = false }
clap = { version = "3", default-features = false, features = ["std", "derive"] }
clap = { version = "4", default-features = false, features = ["std", "derive"] }
futures = { version = "0.3", default-features = false }
hex = { version = "0.4", default-features = false, features = ["std"] }
prost = { version = "0.11", default-features = false }
Expand Down
4 changes: 2 additions & 2 deletions integration-testing/src/bin/arrow-json-integration-test.rs
Expand Up @@ -24,7 +24,7 @@ use arrow_integration_testing::{read_json_file, util::*};
use clap::Parser;
use std::fs::File;

#[derive(clap::ArgEnum, Debug, Clone)]
#[derive(clap::ValueEnum, Debug, Clone)]
#[clap(rename_all = "SCREAMING_SNAKE_CASE")]
enum Mode {
ArrowToJson,
Expand All @@ -41,7 +41,7 @@ struct Args {
arrow: String,
#[clap(short, long, help("Path to JSON file"))]
json: String,
#[clap(arg_enum, short, long, default_value_t = Mode::Validate, help="Mode of integration testing tool")]
#[clap(value_enum, short, long, default_value_t = Mode::Validate, help="Mode of integration testing tool")]
mode: Mode,
#[clap(short, long)]
verbose: bool,
Expand Down
4 changes: 2 additions & 2 deletions integration-testing/src/bin/flight-test-integration-client.rs
Expand Up @@ -20,7 +20,7 @@ use clap::Parser;
type Error = Box<dyn std::error::Error + Send + Sync + 'static>;
type Result<T = (), E = Error> = std::result::Result<T, E>;

#[derive(clap::ArgEnum, Debug, Clone)]
#[derive(clap::ValueEnum, Debug, Clone)]
enum Scenario {
Middleware,
#[clap(name = "auth:basic_proto")]
Expand All @@ -40,7 +40,7 @@ struct Args {
help = "path to the descriptor file, only used when scenario is not provided. See https://arrow.apache.org/docs/format/Integration.html#json-test-data-format"
)]
path: Option<String>,
#[clap(long, arg_enum)]
#[clap(long, value_enum)]
scenario: Option<Scenario>,
}

Expand Down
4 changes: 2 additions & 2 deletions integration-testing/src/bin/flight-test-integration-server.rs
Expand Up @@ -21,7 +21,7 @@ use clap::Parser;
type Error = Box<dyn std::error::Error + Send + Sync + 'static>;
type Result<T = (), E = Error> = std::result::Result<T, E>;

#[derive(clap::ArgEnum, Debug, Clone)]
#[derive(clap::ValueEnum, Debug, Clone)]
enum Scenario {
Middleware,
#[clap(name = "auth:basic_proto")]
Expand All @@ -33,7 +33,7 @@ enum Scenario {
struct Args {
#[clap(long)]
port: u16,
#[clap(long, arg_enum)]
#[clap(long, value_enum)]
scenario: Option<Scenario>,
}

Expand Down
2 changes: 1 addition & 1 deletion parquet/Cargo.toml
Expand Up @@ -43,7 +43,7 @@ num = { version = "0.4", default-features = false }
num-bigint = { version = "0.4", default-features = false }
arrow = { path = "../arrow", version = "24.0.0", optional = true, default-features = false, features = ["ipc"] }
base64 = { version = "0.13", default-features = false, features = ["std"], optional = true }
clap = { version = "3", default-features = false, features = ["std", "derive", "env"], optional = true }
clap = { version = "4", default-features = false, features = ["std", "derive", "env"], optional = true }
serde_json = { version = "1.0", default-features = false, features = ["std"], optional = true }
seq-macro = { version = "0.3", default-features = false }
rand = { version = "0.8", default-features = false, features = ["std", "std_rng"] }
Expand Down

0 comments on commit b879fd1

Please sign in to comment.