-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
upgrade clap to version 3 #1672
Conversation
datafusion-cli/src/main.rs
Outdated
Ok(()) | ||
} else { | ||
Err(format!("Invalid file '{}'", dir)) | ||
} | ||
} | ||
|
||
fn is_valid_data_dir(dir: String) -> std::result::Result<(), String> { | ||
fn is_valid_data_dir(dir: &str) -> std::result::Result<(), String> { | ||
if Path::new(&dir).is_dir() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if Path::new(&dir).is_dir() { | |
if Path::new(dir).is_dir() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM -- thanks @jimexist
Which issue does this PR close?
Closes #1671
Rationale for this change
What changes are included in this PR?
Are there any user-facing changes?