public OptionSet Add(ArgumentSource source) { if (source.IsNull()) { throw new ArgumentNullException("source"); } sources.Add(source); return(this); }
public override bool GetArguments(string value, out IEnumerable <string> replacement) { if (string.IsNullOrEmpty(value) || !value.StartsWith("@")) { replacement = null; return(false); } replacement = ArgumentSource.GetArgumentsFromFile(value.Substring(1)); return(true); }