示例#1
0
        /// <summary>
        /// Register option for the command
        /// </summary>
        /// <param name="buildOption">Action to configure option using builder</param>
        /// <returns>Self instance</returns>
        public CommandConfigurator RegisterOption <T>(Action <OptionBuilder <T> > buildOption)
        {
            var optionBuilder = new OptionBuilder <T>();

            buildOption(optionBuilder);

            return(RegisterOptionInstance <T>(optionBuilder.Build()));
        }