private static void Main(string[] args) { var docopt = new DocoptWrapper(Usage, args); var service = new Service(FilePath.SecretJsonFile, FilePath.CredentialsJsonFile); DriveUtils.SetService(service); var updater = new Updater.Updater(); if (docopt.Get("install").IsTrue) { updater.Install(docopt.GetInt("--code"), docopt.GetString("--name")); } else if (docopt.Get("checkupdate").IsTrue) { updater.Checkupdate(); } else if (docopt.Get("showversions").IsTrue) { //show all versions in the project updater.ShowVersions(); } #if DEBUG Console.WriteLine("Press Enter to exit..."); Console.ReadLine(); #endif }