def g_icmMain( noCmndEntry=None, # To Be Obsoleted extraParamsHook=None, importedCmndsModules=[], icmPreCmndsHook=None, icmPostCmndsHook=None, icmInfo=None, ): """This ICM's specific information is passed to G_mainWithClass""" G.icmInfoSet(icmInfo) examples = None mainEntry = None if noCmndEntry: if type(noCmndEntry) is types.FunctionType: mainEntry = noCmndEntry # examples is None else: # We then assume it is a Cmnd examples = noCmndEntry mainEntry = noCmndEntry sys.exit( icm.G_mainWithClass( inArgv=sys.argv[1:], # Mandatory #extraArgs=__main__.g_argsExtraSpecify, # Mandatory extraArgs=extraParamsHook, G_examples=examples, # Mandatory classedCmndsDict=classedCmndsDict( importedCmndsModules), # Mandatory mainEntry=mainEntry, g_icmPreCmnds=icmPreCmndsHook, g_icmPostCmnds=icmPostCmndsHook, ))
def g_icmMain(): """This ICM's specific information is passed to G_mainWithClass""" sys.exit( icm.G_mainWithClass( inArgv=sys.argv[1:], # Mandatory extraArgs=g_argsExtraSpecify, # Mandatory G_examples=g_examples, # Mandatory classedCmndsDict=classedCmndsDict(), # Mandatory mainEntry=g_mainEntry, g_icmPreCmnds=g_icmPreCmnds, g_icmPostCmnds=g_icmPostCmnds, ))