Skip to content

Commit

Permalink
add error message
Browse files Browse the repository at this point in the history
  • Loading branch information
phstudy committed Oct 18, 2021
1 parent 2986621 commit 18b5b23
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dsa_downloader/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'])
Expand All @@ -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",
Expand All @@ -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)
Expand Down

0 comments on commit 18b5b23

Please sign in to comment.