public string GetUsage(
CommandLineParser parser,
UsageHelpRequest request = UsageHelpRequest.Full,
int maximumLineLength = 0
)
Public Function GetUsage (
parser As CommandLineParser,
Optional request As UsageHelpRequest = UsageHelpRequest.Full,
Optional maximumLineLength As Integer = 0
) As String
Dim instance As UsageWriter
Dim parser As CommandLineParser
Dim request As UsageHelpRequest
Dim maximumLineLength As Integer
Dim returnValue As String
returnValue = instance.GetUsage(parser,
request, maximumLineLength)
public:
String^ GetUsage(
CommandLineParser^ parser,
UsageHelpRequest request = UsageHelpRequest::Full,
int maximumLineLength = 0
)
This method ignores the writer passed to the UsageWriter(LineWrappingTextWriter, NullableBoolean) constructor, and will use the LineWrappingTextWriterForStringWriter(Int32, IFormatProvider, Boolean) method instead, and returns the resulting string. If color support was not explicitly enabled, it will be disabled.
This method calls the WriteParserUsageCore(UsageHelpRequest) method to create the usage help text.
ArgumentNullException | parser is . |