UsageWriterWriteCommandAmbiguousPrefixAliasUsage Method

Creates usage help for when the user used a command name that was a prefix alias for multiple commands.

Definition

Namespace: Ookii.CommandLine
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 5.0.0+724ca9b7fa5edc075ec2ae65044e61b0d494fd1c
C#
public void WriteCommandAmbiguousPrefixAliasUsage(
	CommandManager manager,
	IEnumerable<string> possibleMatches
)

Parameters

manager  CommandManager
The Ookii.CommandLine.CommandsCommandManager
possibleMatches  IEnumerableString
The list of possible argument names or aliases.

Remarks

If no writer was passed to the UsageWriter(LineWrappingTextWriter, TriState) constructor, this method will create a LineWrappingTextWriter for the standard output stream. If color usage wasn't explicitly enabled, it will be enabled if the output supports it according to VirtualTerminalEnableColor(StandardStream).

This method calls the WriteCommandAmbiguousPrefixAliasUsageCore(IEnumerableString) method to create the usage help text.

Exceptions

ArgumentNullExceptionmanager or possibleMatches is .

See Also