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.0.0+bb7ed9a8fdfd1cb21824750a8cf508863ad15086
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