class to enable extensions of the behavior of what is recognized as arguments.
Example #1
0
 public RecognizedArgument(ArgumentWithOptions argumentWithOptions, int index, string argument, string value = null)
 {
     Index = index;
     Value = value;
     WithOptions = argumentWithOptions;
     Argument = argument;
 }
Example #2
0
 public Param(Type type, string name, ArgumentWithOptions argWithOptions)
 {
     Type = type;
     Name = name;
     Index = counter++;
     ArgumentWithOptions = argWithOptions;
 }
Example #3
0
 private string DescriptionAndHelp(ArgumentWithOptions r)
 {
     return r.Help();
 }
Example #4
0
 public bool Equals(ArgumentWithOptions other)
 {
     if (ReferenceEquals(null, other)) return false;
     if (ReferenceEquals(this, other)) return true;
     return Equals(other.Description, Description) && Equals(other.Argument, Argument) && other.Required.Equals(Required);
 }