Common base class for sub-commands that are aggregated by a MultiCommand.
Inheritance: CliCommand
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }