/// <summary>
 /// Creates a new ArgExceptionBehavior attributes with the given policy.
 /// </summary>
 /// <param name="policy">The policy to use, defaults to DontHandleExceptions.</param>
 public ArgExceptionBehavior(ArgExceptionPolicy policy = ArgExceptionPolicy.DontHandleExceptions)
 {
     this.Policy = policy;
     this.ShowTypeColumn = true;
     this.ShowPositionColumn = true;
     this.ExeName = null;
 }
Esempio n. 2
0
 /// <summary>
 /// Creates a new ArgExceptionBehavior attributes with the given policy.
 /// </summary>
 /// <param name="policy">The policy to use, defaults to DontHandleExceptions.</param>
 public ArgExceptionBehavior(ArgExceptionPolicy policy = ArgExceptionPolicy.DontHandleExceptions)
 {
     this.Policy             = policy;
     this.ShowTypeColumn     = true;
     this.ShowPositionColumn = true;
     this.ShowPossibleValues = true;
     this.ExeName            = null;
 }
 /// <summary>
 /// Creates a new ArgExceptionBehavior attributes with the given policy.
 /// </summary>
 /// <param name="policy">The policy to use, defaults to DontHandleExceptions.</param>
 public ArgExceptionBehavior(ArgExceptionPolicy policy = ArgExceptionPolicy.DontHandleExceptions)
 {
     this.Policy = policy;
     this.ShowTypeColumn = true;
     this.ShowPositionColumn = true;
     this.ShowPossibleValues = true;
     this.ExeName = null;
     this.UsageTemplateFile = null;
     this.UsageTemplateProviderType = typeof(DefaultConsoleUsageTemplateProvider);
 }
Esempio n. 4
0
 /// <summary>
 /// Creates a new ArgExceptionBehavior attributes with the given policy.
 /// </summary>
 /// <param name="policy">The policy to use, defaults to DontHandleExceptions.</param>
 public ArgExceptionBehavior(ArgExceptionPolicy policy = ArgExceptionPolicy.DontHandleExceptions)
 {
     this.Policy                    = policy;
     this.ShowTypeColumn            = true;
     this.ShowPositionColumn        = true;
     this.ShowPossibleValues        = true;
     this.ExeName                   = null;
     this.UsageTemplateFile         = null;
     this.UsageTemplateProviderType = typeof(DefaultConsoleUsageTemplateProvider);
 }
Esempio n. 5
0
 /// <summary>
 /// Creates a new ArgExceptionBehavior attributes with the given policy.
 /// </summary>
 /// <param name="policy">The policy to use, defaults to DontHandleExceptions.</param>
 public ArgExceptionBehavior(ArgExceptionPolicy policy = ArgExceptionPolicy.DontHandleExceptions)
 {
     this.Policy = policy;
     this.UsageTemplateProviderType = typeof(DefaultConsoleUsageTemplateProvider);
 }