Note
The automatic version argument will never be created for subcommands.
public bool AutoVersionArgument { get; set; }
Public Property AutoVersionArgument As Boolean
Get
Set
Dim instance As ParseOptionsAttribute
Dim value As Boolean
value = instance.AutoVersionArgument
instance.AutoVersionArgument = value
public:
property bool AutoVersionArgument {
bool get ();
void set (bool value);
}
If this property is , the CommandLineParser will automatically add an argument with the name "Version". When supplied, this argument will write version information to the console and cancel parsing, without showing usage help.
If you already have an argument named "Version", the automatic version argument will not be created even if this property is .
The name and description can be customized by using a custom LocalizedStringProvider class.
This value can be overridden by the ParseOptionsAutoVersionArgument property.