@@ -8,7 +8,8 @@ namespace ThermoRawFileParser
88{
99 public static class MainClass
1010 {
11- private static readonly log4net . ILog Log = log4net . LogManager . GetLogger ( System . Reflection . MethodBase . GetCurrentMethod ( ) . DeclaringType ) ;
11+ private static readonly log4net . ILog Log =
12+ log4net . LogManager . GetLogger ( System . Reflection . MethodBase . GetCurrentMethod ( ) . DeclaringType ) ;
1213
1314 public static void Main ( string [ ] args )
1415 {
@@ -25,11 +26,11 @@ public static void Main(string[] args)
2526 string subFolder = null ;
2627 string s3url = null ;
2728 string s3AccessKeyId = null ;
28- string s3SecretAccessKey = null ;
29+ string s3SecretAccessKey = null ;
2930 var verbose = false ;
3031 string bucketName = null ;
31- var ignoreInstrumentErrors = false ;
32-
32+ var ignoreInstrumentErrors = false ;
33+
3334 var help = false ;
3435
3536 var optionSet = new OptionSet
@@ -79,40 +80,37 @@ public static void Main(string[] args)
7980 } ,
8081 {
8182 "u:|s3_url:" ,
82- "Optional property to write directly the data into S3 Storage" ,
83+ "Optional property to write directly the data into S3 Storage." ,
8384 v => s3url = v
8485 } ,
8586 {
86- "k:|s3_accesskeyid:" ,
87- "Optional key for the S3 bucket to write the file output" ,
87+ "k:|s3_accesskeyid:" ,
88+ "Optional key for the S3 bucket to write the file output." ,
8889 v => s3AccessKeyId = v
8990 } ,
9091 {
91- "t:|s3_secretaccesskey:" ,
92- "Optional key for the S3 bucket to write the file output" ,
92+ "t:|s3_secretaccesskey:" ,
93+ "Optional key for the S3 bucket to write the file output." ,
9394 v => s3SecretAccessKey = v
9495 } ,
9596 {
96- "n:|s3_bucketName:" ,
97- "S3 bucket name" ,
98- v => bucketName = v
97+ "n:|s3_bucketName:" ,
98+ "S3 bucket name" ,
99+ v => bucketName = v
99100 } ,
100101 {
101- "v|verbose" , "Verbose the programm and the individual steps " ,
102+ "v|verbose" , "Enable verbose logging. " ,
102103 v => verbose = v != null
103104 } ,
104105 {
105- "ignoreInstrumentErrors" , "Ignore missing properties by the instrument" ,
106+ "e| ignoreInstrumentErrors" , "Ignore missing properties by the instrument." ,
106107 v => ignoreInstrumentErrors = v != null
107108 }
108-
109-
110-
111109 } ;
112110
113111 try
114112 {
115- //parse the command line
113+ // parse the command line
116114 var extra = optionSet . Parse ( args ) ;
117115
118116 if ( ! extra . IsNullOrEmpty ( ) )
@@ -206,12 +204,15 @@ public static void Main(string[] args)
206204 {
207205 if ( verbose )
208206 {
209- ( ( log4net . Repository . Hierarchy . Hierarchy ) LogManager . GetLoggerRepository ( ) ) . Root . Level = Level . Debug ;
210- ( ( log4net . Repository . Hierarchy . Hierarchy ) LogManager . GetLoggerRepository ( ) ) . RaiseConfigurationChanged ( EventArgs . Empty ) ;
211-
207+ ( ( log4net . Repository . Hierarchy . Hierarchy ) LogManager . GetRepository ( ) ) . Root . Level =
208+ Level . Debug ;
209+ ( ( log4net . Repository . Hierarchy . Hierarchy ) LogManager . GetRepository ( ) )
210+ . RaiseConfigurationChanged ( EventArgs . Empty ) ;
212211 }
213- var parseInput = new ParseInput ( rawFilePath , outputDirectory , outputFormat , gzip , outputMetadataFormat ,
214- includeProfileData , collection , msRun , subFolder , Log , s3url , s3AccessKeyId , s3SecretAccessKey , bucketName , ignoreInstrumentErrors ) ;
212+
213+ var parseInput = new ParseInput ( rawFilePath , outputDirectory , outputFormat , gzip , outputMetadataFormat ,
214+ includeProfileData , collection , msRun , subFolder , Log , s3url , s3AccessKeyId , s3SecretAccessKey ,
215+ bucketName , ignoreInstrumentErrors ) ;
215216 RawFileParser . Parse ( parseInput ) ;
216217 }
217218 catch ( Exception ex )
0 commit comments