Example #1
0
        public static ICommandConfigurator WithExamples(
            this ICommandConfigurator command,
            IConfigurator configurator,
            IEnumerable <string[]> examples,
            bool isHidden = false
            )
        {
            var isFirst = true;

            foreach (var example in examples)
            {
                if (isFirst)
                {
                    if (isHidden == false)
                    {
                        configurator.AddExample(example);
                    }

                    isFirst = false;
                }

                command.WithExample(example);
            }

            return(command);
        }