public ExitCode Run(string[] args) { try { var options = new Options(); options.ParseArguments(args); var task = new Migrator(); task.Run(new Configuration(options)); } catch (Exception err) { Console.Error.WriteLine(err.ToString()); return ExitCode.Failure; } return ExitCode.Success; }
public ExitCode Run(string[] args) { try { var options = new Options(); options.ParseArguments(args); var task = new Migrator(); task.Run(new Configuration(options)); } catch (Exception err) { Console.Error.WriteLine(err.ToString()); return(ExitCode.Failure); } return(ExitCode.Success); }