SIL.FieldWorks.FieldWorks.ShowCommandLineHelp C# (CSharp) Метод

ShowCommandLineHelp() приватный статический Метод

Shows help for command line options.
private static ShowCommandLineHelp ( ) : void
Результат void
		private static void ShowCommandLineHelp()
		{
			string appInfo;
			if (!FwUtils.IsTEInstalled)
				appInfo = "FLEx is the only available option";
			else if (!FwUtils.IsFlexInstalled)
				appInfo = "TE is the only available option";
			else
				appInfo = "TE or FLEx";
			string exeName = Path.GetFileName(Assembly.GetEntryAssembly().CodeBase);
			string helpMessage = string.Format("{0}, Version {1}{3}{3}Usage: {2} [options]{3}{3}" +
				"Options:{3}" +
				"-" + FwAppArgs.kHelp + "\t\tCommand-line usage help{3}" +
				"-" + FwAppArgs.kApp + " <application>\tThe application to start (" + appInfo + "){3}" +
				"-" + FwAppArgs.kProject + " <project>\tThe project name{3}" +
				"-" + FwAppArgs.kServer + " <server>\tThe server name{3}" +
				"-" + FwAppArgs.kDbType + " <database>\tThe database type{3}" +
				"-" + FwAppArgs.kLocale + " <culture>\tCulture abbreviation{3}" +
				"-" + FwAppArgs.kRestoreFile + " <backup>\tThe fwbackup file{3}" +
				"-" + FwAppArgs.kRestoreOptions + " <flags>\tString indicating optional files to restore{3}" +
				"\tThe flags parameter has form \"clsf\", where:{3}" +
				"\tc - Configuration files{3}" +
				"\tl - Linked files (audio-visual media, pictures, etc.){3}" +
				"\ts - Spelling dictionary files{3}" +
				"\tf - Supporting files (fonts, keyboards, converters){3}",
				Application.ProductName, Application.ProductVersion, exeName, Environment.NewLine);
			// TODO: Add 'link' and 'x' help

			MessageBox.Show(helpMessage, Application.ProductName, MessageBoxButtons.OK,
				MessageBoxIcon.Information);
		}
FieldWorks