EVEm8.CliLauncher.Options.GetUsage C# (CSharp) Méthode

GetUsage() private méthode

private GetUsage ( ) : string
Résultat string
        public string GetUsage()
        {
            return HelpText.AutoBuild(this,
              (HelpText current) => HelpText.DefaultParsingErrorsHandler(this, current));
        }

Usage Example

Exemple #1
0
        /// <summary>
        /// Main entry point
        /// Parses command line arguments and passes the account off to CliLauncher
        /// </summary>
        /// <param name="args"></param>
        static void Main(string[] args)
        {
            if (Properties.Settings.Default.newInstall)
            {
                Properties.Settings.Default.Upgrade();
                Properties.Settings.Default.newInstall = false;
                Properties.Settings.Default.Save();
            }

            if (!Updater.CheckUpdate())
            {
                var options = new Options();
                if (CommandLine.Parser.Default.ParseArguments(args, options))
                {
                    string error;
                    if (!Launcher.LaunchAccount(options, out error))
                    {
                        MessageBox.Show(error, "EVEm8 CLI Launcher");
                    }
                }
                else
                {
                    MessageBox.Show(options.GetUsage(), "EVEm8 CLI Launcher");
                }
            }
        }
All Usage Examples Of EVEm8.CliLauncher.Options::GetUsage
Options