File tree 2 files changed +5
-5
lines changed 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ pub async fn exec_from_files(
83
83
. collect :: < Vec < _ > > ( ) ;
84
84
for file in files {
85
85
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 ;
87
87
}
88
88
}
89
89
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ struct Args {
51
51
help = "Execute commands from file(s), then exit" ,
52
52
validator( is_valid_file)
53
53
) ]
54
- file : Vec < String > ,
54
+ file_exit : Vec < String > ,
55
55
56
56
#[ clap(
57
57
short,
@@ -61,7 +61,7 @@ struct Args {
61
61
validator( is_valid_file) ,
62
62
conflicts_with = "file"
63
63
) ]
64
- run : Vec < String > ,
64
+ file_run : Vec < String > ,
65
65
66
66
#[ clap( long, arg_enum, default_value_t = PrintFormat :: Table ) ]
67
67
format : PrintFormat ,
@@ -110,8 +110,8 @@ pub async fn main() -> Result<()> {
110
110
quiet : args. quiet ,
111
111
} ;
112
112
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 ;
115
115
if !files_to_run_then_quit. is_empty ( ) {
116
116
exec:: exec_from_files ( files_to_run_then_quit, & mut ctx, & print_options) . await
117
117
} else {
You can’t perform that action at this time.
0 commit comments