Exemple #1
0
def parse_args(inputs):
    parser = HelpArgParser(
        description="Create a bcbio_sample.yaml file from a standard template and inputs")
    parser = setup_args(parser)
    args = parser.parse_args(inputs)
    if args.template.endswith("csv"):
        parser.print_help()
        print "\nError: Looks like you've swapped the order of the metadata CSV and template YAML arguments, it should go YAML first, CSV second."
        sys.exit(1)
    return parser.parse_args(inputs)