@@ -20,39 +20,47 @@ 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+ return output_paths;
38+ }
39+
40+ if options. output_iconset . is_none ( ) && options. output_icns . is_none ( ) {
41+ let iconset_dir_value = options. mask_path . with_extension ( "iconset" ) ;
42+ let icns_path_value = options. mask_path . with_extension ( "icns" ) ;
43+ println ! (
44+ "[{}] => [{}]" ,
45+ options. mask_path. display( ) ,
46+ iconset_dir_value. display( )
47+ ) ;
48+ println ! (
49+ "[{}] => [{}]" ,
50+ options. mask_path. display( ) ,
51+ icns_path_value. display( )
52+ ) ;
53+ output_paths. iconset_dir = Some ( iconset_dir_value) ;
54+ output_paths. icns_path = Some ( icns_path_value) ;
55+ return output_paths;
5556 }
57+
58+ Self :: alt_outputs (
59+ options,
60+ & mut output_paths,
61+ & options. output_iconset ,
62+ & options. output_icns ,
63+ ) ;
5664 output_paths
5765 }
5866
0 commit comments