13 msg.info(
'logging set in %s', sys.argv[0])
18 from PyJobTransforms.trfDecorators
import stdTrfExceptionHandler, sigUsrStackTrace
20 @stdTrfExceptionHandler
24 msg.info(
'This is %s', sys.argv[0])
27 trf.parseCmdLineArgs(sys.argv[1:])
31 msg.info(
"%s stopped at %s, trf exit code %d", sys.argv[0], time.asctime(), trf.exitCode)
32 sys.exit(trf.exitCode)
35 trf =
transform(executor = scriptExecutor(name =
'The Fabulous Cat', exe =
'cat', exeArgs = [
'inFile']))
42 parser.defineArgGroup(
'Cat_trf',
'Cat_trf specific options')
43 parser.add_argument(
'--inFile', type=trfArgClasses.argFactory(trfArgClasses.argString),
44 group=
'Cat_trf', help=
'Input file for the cat')
47 if __name__ ==
'__main__':