ExtExtension.HasArg method
The HasArg method indicates whether a specified named argument is present in the command line used to invoke the current extension command.
Syntax
bool HasArg(
[in] PCSTR Name
);
Parameters
- Name [in]
Specifies the name of the argument.
Return value
HasArg returns true
if the argument is present; false
if it is not present.
Remarks
This method will work for all types of named arguments. In particular, it can be used to detect the presence of a named argument of Boolean type.
If the name of the argument is a single character, the convenience method HasCharArg can be used instead.
For an overview of argument parsing in the EngExtCpp extensions framework, see Parsing Extension Arguments.
This method should only be called during the execution of an extension command provided by this class.
Requirements
Target platform |
Desktop |
Header |
Engextcpp.hpp (include Engextcpp.hpp) |
See also