public static int Main(params string[] args) { try { CommandLineArguments arguments = new CommandLineArguments(args); Options options = createOptions(arguments); if (options == null) { printUsage(); return 1; } Converter converter = new Converter(options); converter.Execute(); return 0; } catch (Exception e) { Console.WriteLine(e.Message); Console.WriteLine(e.StackTrace); return 1; } }