11using System ;
2- using System . Collections . Generic ;
32using System . ComponentModel ;
4- using System . Linq ;
5- using System . Text ;
6- using System . Threading . Tasks ;
73using J4JSoftware . Logging ;
84
95namespace J4JSoftware . Configuration . CommandLine
@@ -13,40 +9,39 @@ public partial class MasterTextCollection
139 public static MasterTextCollection GetDefault (
1410 CommandLineStyle cmdLineStyle ,
1511 Func < IJ4JLogger > ? loggerFactory ,
16- StringComparison ? comparison = null )
12+ StringComparison ? comparison = null )
1713 {
18- var retVal = new MasterTextCollection ( comparison ?? StringComparison . OrdinalIgnoreCase , loggerFactory ) ;
14+ var retVal = new MasterTextCollection ( comparison ?? StringComparison . OrdinalIgnoreCase , loggerFactory ) ;
1915
20- switch ( cmdLineStyle )
16+ switch ( cmdLineStyle )
2117 {
2218 case CommandLineStyle . Linux :
23- retVal . AddRange ( TextUsageType . Prefix , "-" , "--" ) ;
24- retVal . AddRange ( TextUsageType . Quote , "\" " , "'" ) ;
25- retVal . Add ( TextUsageType . ValueEncloser , "=" ) ;
26- retVal . AddRange ( TextUsageType . Separator , " " , "\t " ) ;
19+ retVal . AddRange ( TextUsageType . Prefix , "-" , "--" ) ;
20+ retVal . AddRange ( TextUsageType . Quote , "\" " , "'" ) ;
21+ retVal . Add ( TextUsageType . ValueEncloser , "=" ) ;
22+ retVal . AddRange ( TextUsageType . Separator , " " , "\t " ) ;
2723
2824 return retVal ;
2925
3026 case CommandLineStyle . Universal :
31- retVal . AddRange ( TextUsageType . Prefix , "-" , "--" , "/" ) ;
32- retVal . AddRange ( TextUsageType . Quote , "\" " , "'" ) ;
33- retVal . Add ( TextUsageType . ValueEncloser , "=" ) ;
34- retVal . AddRange ( TextUsageType . Separator , " " , "\t " ) ;
27+ retVal . AddRange ( TextUsageType . Prefix , "-" , "--" , "/" ) ;
28+ retVal . AddRange ( TextUsageType . Quote , "\" " , "'" ) ;
29+ retVal . Add ( TextUsageType . ValueEncloser , "=" ) ;
30+ retVal . AddRange ( TextUsageType . Separator , " " , "\t " ) ;
3531
3632 return retVal ;
3733
3834 case CommandLineStyle . Windows :
39- retVal . AddRange ( TextUsageType . Prefix , "/" , "-" , "--" ) ;
40- retVal . Add ( TextUsageType . Quote , "\" " ) ;
41- retVal . Add ( TextUsageType . ValueEncloser , "=" ) ;
42- retVal . AddRange ( TextUsageType . Separator , " " , "\t " ) ;
35+ retVal . AddRange ( TextUsageType . Prefix , "/" , "-" , "--" ) ;
36+ retVal . Add ( TextUsageType . Quote , "\" " ) ;
37+ retVal . Add ( TextUsageType . ValueEncloser , "=" ) ;
38+ retVal . AddRange ( TextUsageType . Separator , " " , "\t " ) ;
4339
4440 return retVal ;
4541
4642 default :
47- throw new InvalidEnumArgumentException ( $ "Unsupported CommandLineStyle '{ cmdLineStyle } '") ;
43+ throw new InvalidEnumArgumentException ( $ "Unsupported CommandLineStyle '{ cmdLineStyle } '" ) ;
4844 }
4945 }
50-
5146 }
52- }
47+ }
0 commit comments