示例#1
0
 public OptionSet Add(ArgumentSource source)
 {
     if (source == null)
     {
         throw new ArgumentNullException("source");
     }
     sources.Add(source);
     return(this);
 }
示例#2
0
 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);
 }