diff --git a/dsa_downloader/cli.py b/dsa_downloader/cli.py index 6b35a23..468dafa 100644 --- a/dsa_downloader/cli.py +++ b/dsa_downloader/cli.py @@ -17,7 +17,7 @@ def cli(ctx, debug): @cli.command() @click.pass_context -@click.argument('path_to_apk', type=click.Path()) +@click.argument('path_to_apk', type=click.Path(exists=True)) @click.argument('output_path', type=click.Path(dir_okay=False), default='out/bootstrap_config.json') def extract_config(ctx, path_to_apk, output_path): extractor = config_extractor.ConfigExtractor(ctx.obj['DEBUG']) @@ -26,7 +26,7 @@ def extract_config(ctx, path_to_apk, output_path): @cli.command() @click.pass_context -@click.argument('path_to_boostrap_config', type=click.Path(), default='out/bootstrap_config.json') +@click.argument('path_to_boostrap_config', type=click.Path(exists=True), default='out/bootstrap_config.json') @click.argument('output_path', type=click.Path(), default='out/langs') @click.option('--langs', type=click.Choice( ["ChineseTraditional", "ChineseSimplified", "English", "French", "German", "Italian", "Japanese", "Korean", @@ -41,7 +41,7 @@ def download_langs(ctx, path_to_boostrap_config, output_path, langs): @cli.command() @click.pass_context -@click.argument('path_to_boostrap_config', type=click.Path(), default='out/bootstrap_config.json') +@click.argument('path_to_boostrap_config', type=click.Path(exists=True), default='out/bootstrap_config.json') @click.argument('output_path', type=click.Path(), default='out/assets') @click.argument('extracted_path', type=click.Path(), default='out/assets_extracted') @click.option('--extract_asset', type=click.BOOL, default=True)