def main():
parser = argparse.ArgumentParser(formatter_class=argparse.RawDescriptionHelpFormatter,
description=textwrap.dedent('''
CWL generator - Create GGR CWL workflows using templates
--------------------------------------------------------
'''))
# Base script options
parser.add_argument('-o', '--outdir', metavar='output_dir', dest='outdir', type=str,
help='Output directory where the files will be placed.')
parser.add_argument('-c', '--config-yaml', dest='config_yaml', required=True,
help='Config file used while rendering the CWL file.')
# Parse input
args = parser.parse_args()
if args.outdir and not os.path.isdir(args.outdir):
os.mkdir(args.outdir)
# Generate outputs
render_cwl_from_yaml(args.config_yaml, args.outdir)
评论列表
文章目录