Exemplo n.º 1
0
        private Dictionary <string, string> UserArguments(InvocationContext context)
        {
            Dictionary <string, string> userArguments = new();

            foreach (var variable in _userInputProvider.GetVariableValues())
            {
                if (context.ParseResult.ValueForOption(UserOptionFormat.ToUserOption(variable.Key)) is string userValue)
                {
                    userArguments.Add(variable.Key, userValue);
                }
            }

            return(userArguments);
        }