@@ -20,38 +20,42 @@ impl PotentialOutputPaths {
2020 iconset_dir : None ,
2121 icns_path : None ,
2222 } ;
23- match (
24- & options. target ,
25- & options. output_iconset ,
26- & options. output_icns ,
27- ) {
28- ( Some ( target) , output_iconset, output_icns) => {
23+ if !options. targets . is_empty ( ) {
24+ for target in & options. targets {
2925 println ! (
3026 "[{}] => assign to [{}]" ,
3127 options. mask_path. display( ) ,
3228 target. display( )
3329 ) ;
34- Self :: alt_outputs ( options, & mut output_paths, output_iconset, output_icns) ;
35- }
36- ( None , None , None ) => {
37- let iconset_dir_value = options. mask_path . with_extension ( "iconset" ) ;
38- let icns_path_value = options. mask_path . with_extension ( "icns" ) ;
39- println ! (
40- "[{}] => [{}]" ,
41- options. mask_path. display( ) ,
42- iconset_dir_value. display( )
43- ) ;
44- println ! (
45- "[{}] => [{}]" ,
46- options. mask_path. display( ) ,
47- icns_path_value. display( )
48- ) ;
49- output_paths. iconset_dir = Some ( iconset_dir_value) ;
50- output_paths. icns_path = Some ( icns_path_value) ;
51- }
52- ( None , output_iconset, output_icns) => {
53- Self :: alt_outputs ( options, & mut output_paths, output_iconset, output_icns) ;
5430 }
31+ Self :: alt_outputs (
32+ options,
33+ & mut output_paths,
34+ & options. output_iconset ,
35+ & options. output_icns ,
36+ ) ;
37+ } else if options. output_iconset . is_none ( ) && options. output_icns . is_none ( ) {
38+ let iconset_dir_value = options. mask_path . with_extension ( "iconset" ) ;
39+ let icns_path_value = options. mask_path . with_extension ( "icns" ) ;
40+ println ! (
41+ "[{}] => [{}]" ,
42+ options. mask_path. display( ) ,
43+ iconset_dir_value. display( )
44+ ) ;
45+ println ! (
46+ "[{}] => [{}]" ,
47+ options. mask_path. display( ) ,
48+ icns_path_value. display( )
49+ ) ;
50+ output_paths. iconset_dir = Some ( iconset_dir_value) ;
51+ output_paths. icns_path = Some ( icns_path_value) ;
52+ } else {
53+ Self :: alt_outputs (
54+ options,
55+ & mut output_paths,
56+ & options. output_iconset ,
57+ & options. output_icns ,
58+ ) ;
5559 }
5660 output_paths
5761 }
0 commit comments