public void ParseConfig() { Options = new Options(); if (ParseArgs()) { throw new ArgumentException("Could not parse args"); } SetSharpConfig(); }
public void Start() { Console.WriteLine("--------------------------------"); Console.WriteLine("Sharp Migrator v" + Assembly.GetExecutingAssembly().GetName().Version); Console.WriteLine("--------------------------------"); PrintPlataform(); _options = new Options(); if (_args.Length == 0 || !Parser.Default.ParseArguments(_args, _options)) { Console.WriteLine(_options.GetUsage()); Exit(); } PrintMigrationGroup(); SetSharpConfig(); PrintDataSource(SharpFactory.Default.ConnectionString); Run(); }