Exemplo n.º 1
0
        CommandPart ICommandParserImplementation.GetLongFormArgument()
        {
            //Assume no leading whitepace

            var             key   = _impl.ScanToAny('=', ' ');
            StringReference value = default;

            if (_impl.Peek() == '=')
            {
                _impl.Consume();

                value = _impl.GetValueReference(true);
            }

            return(new CommandPart
            {
                IsArgument = true,
                Key = key,
                Value = value
            });
        }