AwsSnapshotScheduler.Options.GetUsage C# (CSharp) 메소드

GetUsage() 개인적인 메소드

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

Usage Example

예제 #1
0
        public static void Main(string[] args)
        {
            options = new Options();

            CommandLine.Parser parser = new CommandLine.Parser(with => with.HelpWriter = Console.Error);

            parser.ParseArgumentsStrict(args, options, () => Environment.Exit(-2));

            if (options.AccessKey == null || options.SecretKey == null)
            {
                Console.WriteLine(options.GetUsage());
                Environment.Exit(-2);
            }

            try
            {
                // ListVolumes(); // got for testing connectivity

                CheckForScheduledSnapshots();

                CheckForExpiredSnapshots();
            }
            catch (Exception err)
            {
                Console.WriteLine("Error from " + err.Source + ": " + err.Message);
                Environment.Exit(-2);
            }

            Environment.Exit(0);
        }
All Usage Examples Of AwsSnapshotScheduler.Options::GetUsage