@cli.command('prepare-s3')
@click.option('--allow-missing', is_flag=True, default=False)
@click.argument('model_info', type=click.File('r'))
@click.argument('directory', type=click.Path(writable=False, dir_okay=True, file_okay=False))
@click.argument('output', type=click.Path(writable=True, dir_okay=True, file_okay=False))
@click.argument('file_list', type=click.Path())
def r2dt_prepare_s3(model_info, directory, output, file_list, allow_missing):
    file_list = Path(file_list)
    output = Path(output)
    r2dt.prepare_s3(model_info, directory, output, file_list, allow_missing=allow_missing)
@cli.command('prepare-s3')
@click.option('--allow-missing', is_flag=True, default=False)
@click.argument('model_info', type=click.File('r'))
@click.argument('directory', type=click.Path(writable=False, dir_okay=True, file_okay=False))
@click.argument('output', type=click.Path(writable=True, dir_okay=True, file_okay=False))
@click.argument('file_list', type=click.Path())
def r2dt_prepare_s3(model_info, directory, output, file_list, allow_missing):
    file_list = Path(file_list)
    output = Path(output)
    r2dt.prepare_s3(model_info, directory, output, file_list, allow_missing=allow_missing)