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)

See addDefaultEntry().

DIRAC.Core.Base.Script.disableCS()

See disableCS().

DIRAC.Core.Base.Script.enableCS()

See enableCS().

DIRAC.Core.Base.Script.getExtraCLICFGFiles()

See getExtraCLICFGFiles().

DIRAC.Core.Base.Script.getPositionalArgs(group=False)

See getPositionalArguments().

DIRAC.Core.Base.Script.getUnprocessedSwitches()

See 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.registerArgument(description, mandatory=True, values=None, default=None)

See registerCmdArg().

DIRAC.Core.Base.Script.registerSwitch(showKey, longKey, helpString, callback=False)

See registerCmdOpt().

DIRAC.Core.Base.Script.setUsageMessage(usageMessage)

See setUsageMessage().