Skip to content

Commit b2ae6b0

Browse files
Rename options and clippy
1 parent 74e1706 commit b2ae6b0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

datafusion-cli/src/exec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ pub async fn exec_from_files(
8383
.collect::<Vec<_>>();
8484
for file in files {
8585
let mut reader = BufReader::new(file);
86-
exec_from_lines(ctx, &mut reader, &print_options).await;
86+
exec_from_lines(ctx, &mut reader, print_options).await;
8787
}
8888
}
8989

datafusion-cli/src/main.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ struct Args {
5151
help = "Execute commands from file(s), then exit",
5252
validator(is_valid_file)
5353
)]
54-
file: Vec<String>,
54+
file_exit: Vec<String>,
5555

5656
#[clap(
5757
short,
@@ -61,7 +61,7 @@ struct Args {
6161
validator(is_valid_file),
6262
conflicts_with = "file"
6363
)]
64-
run: Vec<String>,
64+
file_run: Vec<String>,
6565

6666
#[clap(long, arg_enum, default_value_t = PrintFormat::Table)]
6767
format: PrintFormat,
@@ -110,8 +110,8 @@ pub async fn main() -> Result<()> {
110110
quiet: args.quiet,
111111
};
112112

113-
let files_to_run_then_quit = args.file;
114-
let files_to_run = args.run;
113+
let files_to_run_then_quit = args.file_exit;
114+
let files_to_run = args.file_run;
115115
if !files_to_run_then_quit.is_empty() {
116116
exec::exec_from_files(files_to_run_then_quit, &mut ctx, &print_options).await
117117
} else {

0 commit comments

Comments
 (0)