/// <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; }
/// <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); }
/// <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); }