You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add ability to specify order of positional parameters to be different from declaration.
* Change two instances of InternalErrorException to a specialized exception (UnsupportedTypeException and InvalidOrderOfPositionalParametersException).
:CommandLineParseException("The field {0} is of an unsupported type.".ToConsoleColoredString().Fmt("<".Color(CmdLineColor.FieldBrackets)+fieldName.Color(CmdLineColor.Field)+">".Color(CmdLineColor.FieldBrackets)),helpGenerator,inner)
176
+
{
177
+
/// <summary>Contains the name of the field pertaining to the parameter that was passed an invalid value.</summary>
178
+
publicstringFieldName{get;privateset;}=fieldName;
179
+
}
180
+
181
+
/// <summary>Indicates that a mandatory positional parameter is defined to come after an optional positional parameter, which is not possible.</summary>
:CommandLineParseException("The positional parameter {0} is optional, but is followed by positional parameter {1} which is mandatory. Either mark {0} as mandatory or {1} as optional.".ToConsoleColoredString().Fmt(colorizedFieldName(fieldOptional),colorizedFieldName(fieldMandatory)),helpGenerator,inner)
Assert.Equal("The positional parameter <Test5Cmd2.Two> is optional, but is followed by positional parameter <Test5Cmd2.One> which is mandatory. Either mark <Test5Cmd2.Two> as mandatory or <Test5Cmd2.One> as optional.",exc.Message);
0 commit comments