private static int Main(string[] args) { AppDomain.CurrentDomain.UnhandledException += OnUnhandledException; var options = ParseCommandOptions(args, CommandRunner.GetOptionsTypes()); if (options != null) { if (CommandRunner.HandleCommand(options)) { return(0); } } return(1); }