Script

This is the guy that you should use when you develop a script that interacts with DIRAC

And don’t forget to call parseCommandLine()

DIRAC.Core.Base.Script.addDefaultOptionValue(option, value)
DIRAC.Core.Base.Script.disableCS()
DIRAC.Core.Base.Script.enableCS()
DIRAC.Core.Base.Script.getExtraCLICFGFiles()
DIRAC.Core.Base.Script.getPositionalArgs()
DIRAC.Core.Base.Script.getUnprocessedSwitches()
DIRAC.Core.Base.Script.initialize(script=False, ignoreErrors=False, initializeMonitor=False, enableCommandLine=False)
DIRAC.Core.Base.Script.parseCommandLine(script=False, ignoreErrors=False, initializeMonitor=False)
DIRAC.Core.Base.Script.registerSwitch(showKey, longKey, helpString, callback=False)
DIRAC.Core.Base.Script.setUsageMessage(usageMessage)