13 msg.info(
'logging set in %s', sys.argv[0])
17 from PyJobTransforms.trfDecorators
import stdTrfExceptionHandler, sigUsrStackTrace
21 @stdTrfExceptionHandler
25 msg.info(
'This is %s', sys.argv[0])
28 trf.parseCmdLineArgs(sys.argv[1:])
32 msg.info(
"%s stopped at %s, trf exit code %d", sys.argv[0], time.asctime(), trf.exitCode)
33 sys.exit(trf.exitCode)
37 executorSet.add(archiveExecutor(name =
'Archiver', exe =
'zip', inData = [
'Data'], outData = [
'Arch']))
38 executorSet.add(archiveExecutor(name =
'Unarchiver', exe =
'unarchive', inData = [
'Arch'], outData = [
'outNULL']))
47 parser.defineArgGroup(
'Archiver',
'Options')
48 parser.defineArgGroup(
'Unarchiver',
'Options')
49 parser.add_argument(
'--inputDataFile',
'--inputFile', nargs=
'+',
50 type=trfArgClasses.argFactory(trfArgClasses.argFile, io=
'input', type=
'misc'),
51 help=
'Input file(s)', group=
'Archiver')
52 parser.add_argument(
'--inputArchFile',
53 type=trfArgClasses.argFactory(trfArgClasses.argFile, io=
'input', type=
'misc'),
54 help=
'Input archive file', group=
'Unarchiver')
55 parser.add_argument(
'--path', group=
'Unarchiver',
56 help=
'Specifies a different directory to extract to. The default is the current working directory', default=
'.')
57 parser.add_argument(
'--outputArchFile',
'--outputFile',
58 type=trfArgClasses.argFactory(trfArgClasses.argFile, io=
'output', type=
'misc'),
59 help=
'Output archive file', group=
'Archiver')
61 if __name__ ==
'__main__':