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