UsageBuilder.AddArgument "optional" param always "Optional"
Brought to you by:
arobinson74
hawkeye.parker@autodesk.com
From docs:
UsageBuilder.AddArgument
public void AddArgument(
string name,
string description,
Type type,
bool optional
);
optional
True if the argument should be marked as optional
To Reproduce:
-Create a UsageBuilder and call the AddArgument method, setting "optional" to false.
-Print usage using usage.ToText, e.g., _usage.ToText(Console.Out, OptStyle.Windows, true);
Expected:
Argument should be "Required".
Actual:
Argument is "Optional". Whether the flag is true or false, the usage output is always "Optional".