File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 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(
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
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ struct Args {
5555 help = "Execute commands from file(s), then exit" ,
5656 validator( is_valid_file)
5757 ) ]
58- file : Vec < String > ,
58+ file_exit : Vec < String > ,
5959
6060 #[ clap(
6161 short,
@@ -65,7 +65,7 @@ struct Args {
6565 validator( is_valid_file) ,
6666 conflicts_with = "file"
6767 ) ]
68- run : Vec < String > ,
68+ file_run : Vec < String > ,
6969
7070 #[ clap( long, arg_enum, default_value_t = PrintFormat :: Table ) ]
7171 format : PrintFormat ,
@@ -114,8 +114,8 @@ pub async fn main() -> Result<()> {
114114 quiet : args. quiet ,
115115 } ;
116116
117- let files_to_run_then_quit = args. file ;
118- let files_to_run = args. run ;
117+ let files_to_run_then_quit = args. file_exit ;
118+ let files_to_run = args. file_run ;
119119 if !files_to_run_then_quit. is_empty ( ) {
120120 exec:: exec_from_files ( files_to_run_then_quit, & mut ctx, & print_options) . await
121121 } else {
You can’t perform that action at this time.
0 commit comments