static void Main(string[] args) { var parser = new ArgParser(); // Can move statement inside Parsing() method, as this has no other use in this function var arguments = Parsing(parser, args); if (arguments.CheckArgs()) { var conv = new ConverterFromLogToCSV(); try { conv.convert(arguments); Console.WriteLine("Data conveted Successfully"); } catch (Exception es) { Console.WriteLine(es); } } }
static void Main(string[] args) { var parser = new ArgParser(); var arguments = Parsing(parser, args); if (arguments.CheckArgs()) { var conv = new ConverterFromLogToCSV(); try { conv.convert(arguments); Console.WriteLine("Data conveted Successfully"); } catch (Exception es) { Console.WriteLine(es); } } }