File tree Expand file tree Collapse file tree 1 file changed +2
-15
lines changed Expand file tree Collapse file tree 1 file changed +2
-15
lines changed Original file line number Diff line number Diff line change @@ -263,21 +263,12 @@ enum PkgCommand {
263263        manifest :  bool , 
264264    } , 
265265
266-     /// Preview a registry package 
267- Preview  { 
268-         /// Package name 
269- package :  String , 
270-     } , 
271- 
272266    /// Explains why a package is in the dependency graph 
273267#[ command( name = "why" ) ]  
274268    Why  { 
275269        /// Package name to explain 
276270package :  String , 
277271    } , 
278- 
279-     /// Clean the Julia cache 
280- Clean , 
281272} 
282273
283274#[ derive( Subcommand ) ]  
@@ -431,12 +422,8 @@ fn main() -> Result<std::process::ExitCode> {
431422
432423    // Add default flags if not already specified 
433424    for  ( flag,  value)  in  defaults { 
434-         // Check if this flag (or its underscore variant) is already specified 
435-         let  flag_underscore = flag. replace ( '-' ,  "_" ) ; 
436-         if  !julia_flags
437-             . iter ( ) 
438-             . any ( |f| f. starts_with ( flag)  || f. starts_with ( & flag_underscore) ) 
439-         { 
425+         // Check if this flag is already specified 
426+         if  !julia_flags. iter ( ) . any ( |f| f. starts_with ( flag) )  { 
440427            new_args. push ( format ! ( "{}={}" ,  flag,  value) ) ; 
441428        } 
442429    } 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments