Ejemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="RootCommand"/> class.
        /// </summary>
        public RootCommand()
            : base()
        {
            this.Command = new System.CommandLine.RootCommand()
            {
                Description = "A multi-platform, command line interface, checksum utility",
                Handler     = CommandHandler.Create(
                    (RootArguments args, IConsole console) => RootHandler.Handle(args, console)),
            };

            this.AddCommandArguments();

            this.AddCommandOptions();

            this.AddCommandValidators();
        }