コード例 #1
0
ファイル: ArgumentParser.cs プロジェクト: schallm/commandline
 protected static void EnsureOptionAttributeIsArrayCompatible(OptionInfo option)
 {
     if (!option.IsAttributeArrayCompatible)
     {
         throw new ParserException();
     }
 }
コード例 #2
0
ファイル: ArgumentParser.cs プロジェクト: schallm/commandline
 protected void DefineOptionThatViolatesFormat(OptionInfo option)
 {
     this.PostParsingState.Add(new ParsingError(option.ShortName, option.LongName, true));
 }
コード例 #3
0
ファイル: ArgumentParser.cs プロジェクト: schallm/commandline
 protected static void EnsureOptionArrayAttributeIsNotBoundToScalar(OptionInfo option)
 {
     if (!option.IsArray && option.IsAttributeArrayCompatible)
     {
         throw new ParserException();
     }
 }