public static T AddName <T>(this T argumentsBuilder, IArgumentName name) where T : IArgumentsBuilder { argumentsBuilder.AddToken(name); return(argumentsBuilder); }
/// <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); }
public ResponseArgumentError(IArgumentName argumentName, ArgumentError argumentError) { ArgumentName = argumentName.Value; ArgumentError = argumentError; }
public static NameValueArgument SetName(this NameValueArgument nameValue, IArgumentName name) { nameValue.Name = name; return(nameValue); }