UsageWriter.WriteArgumentName Method

Writes the name of an argument.

Definition

Namespace: Ookii.CommandLine
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.1.0+9df03b6173b5fc9d44dc39638758964dd7a0f4c7
C#
protected virtual void WriteArgumentName(
	string argumentName,
	string prefix
)

Parameters

argumentName  String
The name of the argument.
prefix  String
The argument name prefix; if using ParsingMode.LongShort, this may vary depending on whether the name is a short or long name.

Remarks

The default implementation returns the prefix followed by the name, e.g. "-Name".

This method is called by the base implementation of the WriteArgumentSyntax(CommandLineArgument) method and the WritePositionalArgumentName(String, String, Nullable<Char>) method.

See Also