Common base class for sub-commands that are aggregated by a MultiCommand.
Inheritance: CliCommand
Example #1
0
        public override void Parse(IEnumerable <string> args)
        {
            base.Parse(args);

            string subCommandName = CommandFactory.GetCommandName(ref args);

            if (subCommandName == null)
            {
                return;
            }

            _subCommand = GetCommand(subCommandName);
            _subCommand.Parse(args);
        }
Example #2
0
        public override void Parse(IEnumerable<string> args)
        {
            base.Parse(args);

            string subCommandName = CommandFactory.GetCommandName(ref args);
            if (subCommandName == null) return;

            _subCommand = GetCommand(subCommandName);
            _subCommand.Parse(args);
        }