CommandOptionsAutoVersionCommand Property

Gets or sets a value that indicates whether a version command should automatically be created.

Definition

Namespace: Ookii.CommandLine.Commands
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.2.0+a4d3631e4dcc0970081ed435288efdebc1325f83
C#
public bool AutoVersionCommand { get; set; }

Property Value

Boolean
to automatically create a version command; otherwise, . The default is .

Remarks

If this property is true, a command named "version" will be automatically added to the list of available commands, unless a command with that name already exists.

When invoked, the command will show version information for the application, based on the entry point assembly.

You can customize the name and description of the automatic version command using the LocalizedStringProvider class.

See Also