This command queries a tool to see if it has options. If it does, it returns true. Otherwise it returns false.
Derived from mel command maya.cmds.toolHasOptions
Example:
import pymel.core as pm
if pm.toolHasOptions('moveSuperContext'):
print 'moveSuperContext tool has options'