Example #1
0
        public static T AddName <T>(this T argumentsBuilder, IArgumentName name)
            where T : IArgumentsBuilder
        {
            argumentsBuilder.AddToken(name);

            return(argumentsBuilder);
        }
Example #2
0
        /// <summary>
        /// Allows adding an value-less option that turned on just by being present.
        /// </summary>
        public static T AddFlag <T>(this T argumentsBuilder, IArgumentName flag)
            where T : IArgumentsBuilder
        {
            argumentsBuilder.AddName(flag);

            return(argumentsBuilder);
        }
Example #3
0
 public ResponseArgumentError(IArgumentName argumentName, ArgumentError argumentError)
 {
     ArgumentName  = argumentName.Value;
     ArgumentError = argumentError;
 }
Example #4
0
        public static NameValueArgument SetName(this NameValueArgument nameValue, IArgumentName name)
        {
            nameValue.Name = name;

            return(nameValue);
        }