コード例 #1
0
 public OptionSet Add(ArgumentSource source)
 {
     if (source is 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);
 }
コード例 #3
0
ファイル: OptionSet.cs プロジェクト: djnicholson/WalletWasabi
		public OptionSet Add(ArgumentSource source)
		{
			if (source is null)
			{
				throw new ArgumentNullException(nameof(source));
			}

			Sources.Add(source);
			return this;
		}
コード例 #4
0
 public CommandSet Add(ArgumentSource source)
 {
     Options.Add(source);
     return(this);
 }
コード例 #5
0
ファイル: ArgumentSource.cs プロジェクト: veyvin/UpuGuiWPF
 public static IEnumerable <string> GetArguments(TextReader reader)
 {
     return(ArgumentSource.GetArguments(reader, false));
 }
コード例 #6
0
ファイル: ArgumentSource.cs プロジェクト: veyvin/UpuGuiWPF
 public static IEnumerable <string> GetArgumentsFromFile(string file)
 {
     return(ArgumentSource.GetArguments((TextReader)File.OpenText(file), true));
 }