4.3.2 MArgParser

The following MArgParser methods differ from their C++ counterparts.

getFlagArgumentBool( flag, index, status=None)
This is the wrapper for the MStatus getFlagArgument(const char* flag, unsigned int index, bool& result) method. The function returns a boolean value and takes an additional optional MStatus object as input.

getFlagArgumentInt( flag, index, status=None)
This is the wrapper for the MStatus getFlagArgument(const char* flag, unsigned int index, int& result) method. The function returns an integer value and takes an additional optional MStatus object as input.

getFlagArgumentUInt( flag, index, status=None)
This is the wrapper for the MStatus getFlagArgument(const char* flag, unsigned int index, unsigned int& result) method. The function returns an integer value and takes an additional optional MStatus object as input.

getFlagArgumentDouble( flag, index, status=None)
This is the wrapper for the MStatus getFlagArgument(const char* flag, unsigned int index, double& result) method. The function returns a double value and takes an additional optional MStatus object as input.

getCommandArgumentBool( index, status=None)
This is the wrapper for the MStatus getCommandArgument(unsigned int index, bool& result) method. The function returns a boolean value and takes an additional optional MStatus object as input.

getCommandArgumentInt( index, status=None)
This is the wrapper for the MStatus getCommandArgument(unsigned int index, int& result) method. The function returns an integer value and takes an additional optional MStatus object as input.

getCommandArgumentDouble( index, status=None)
This is the wrapper for the MStatus getCommandArgument(unsigned int index, double& result) method. The function returns a double value and takes an additional optional MStatus object as input.