CommandLineParserGetDefaultArgumentNamePrefixes Method

Gets the default argument name prefixes for the current platform.

Definition

Namespace: Ookii.CommandLine
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.2.0+a4d3631e4dcc0970081ed435288efdebc1325f83
C#
public static ImmutableArray<string> GetDefaultArgumentNamePrefixes()

Return Value

ImmutableArrayString
An array containing the default prefixes for the current platform.

Remarks

The default prefixes for each platform are:

PlatformPrefixes
Windows'-' and '/'
Other'-'

If the Mode property is ParsingModeLongShort, these prefixes will be used for short argument names. The DefaultLongArgumentNamePrefix constant is the default prefix for long argument names regardless of platform.

See Also