File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -824,7 +824,7 @@ impl<'a> Builder<'a> {
824
824
Subcommand :: Install { ref paths } => ( Kind :: Install , & paths[ ..] ) ,
825
825
Subcommand :: Run { ref paths } => ( Kind :: Run , & paths[ ..] ) ,
826
826
Subcommand :: Format { .. } => ( Kind :: Format , & [ ] [ ..] ) ,
827
- Subcommand :: Setup { ref paths } => ( Kind :: Setup , & paths [ .. ] ) ,
827
+ Subcommand :: Setup { ref path } => ( Kind :: Setup , if let Some ( p ) = path { std :: slice :: from_ref ( p ) } else { & [ ] } ) ,
828
828
Subcommand :: Clean { .. } => {
829
829
panic ! ( )
830
830
}
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ pub enum Subcommand {
141
141
paths : Vec < PathBuf > ,
142
142
} ,
143
143
Setup {
144
- paths : Vec < PathBuf > ,
144
+ path : Option < PathBuf > ,
145
145
} ,
146
146
}
147
147
@@ -543,7 +543,7 @@ Arguments:
543
543
Kind :: Bench | Kind :: Clean | Kind :: Dist | Kind :: Install => { }
544
544
} ;
545
545
// Get any optional paths which occur after the subcommand
546
- let paths = matches. free [ 1 ..] . iter ( ) . map ( |p| p. into ( ) ) . collect :: < Vec < PathBuf > > ( ) ;
546
+ let mut paths = matches. free [ 1 ..] . iter ( ) . map ( |p| p. into ( ) ) . collect :: < Vec < PathBuf > > ( ) ;
547
547
548
548
let verbose = matches. opt_present ( "verbose" ) ;
549
549
You can’t perform that action at this time.
0 commit comments