public ApplicationArgumentsParser()
 {
     _parser = new FluentCommandLineParser<ApplicationArguments>();
     var version = new Cadmus.Foundation.AppVersionInfo();
     Version = version.GetCurrentVersion();
     Setup();
 }
 public void ShowHelp()
 {
     var version = new Cadmus.Foundation.AppVersionInfo();
     Console.WriteLine("Scheduler - Task Scheduling Tool " + version.GetCurrentVersion() + "\n" +
                       "2016 (C) Cymric\n" +
                       "Usage:\n" +
                       "--help: show help\n" +
                       "--force: run all task even if not scheduled\n" +
                       "--schedule: run tasks\n" +
                       "--shutdown: gracefully end all tasks and shut down scheduler\n" +
                       "--unlock: run tasks even if is locked\n" +
                       "--version: show version\n");
 }
 public void ShowHelp()
 {
     var version = new Cadmus.Foundation.AppVersionInfo();
     Console.WriteLine("DbUp - Database Upgrade Tool " + version.GetCurrentVersion() + "\n" +
                       "2016 (C) Cymric\n" +
                       "Usage:\n" +
                       "--help: show help\n" +
                       "--silent: silent mode, disable confirmations\n" +
                       "--create: create new database from embedded dacpac\n" +
                       "--drop: drop database\n" +
                       "--upgrade: upgrade existing database\n" +
                       "--timeout <value>: script execution timeout in seconds\n" +
                       "--transaction [NoTransaction|Transaction|TransactionPerScript]: transaction options, default is per script\n" +
                       "--version: show version\n");
 }
Example #4
0
 public InfoLogger(bool onlyVersion)
 {
     _onlyVersion = onlyVersion;
     var versionInfo = new Cadmus.Foundation.AppVersionInfo();
     Version = versionInfo.GetCurrentVersion();
 }