Skip to content

Commit c0ed84d

Browse files
committed
Change to known argument
1 parent d3a723f commit c0ed84d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pythonforandroid/toolchain.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,8 @@ def add_parser(subparsers, *args, **kwargs):
368368
'clean_download_cache', aliases=['clean-download-cache'],
369369
help='Delete any cached recipe downloads',
370370
parents=[generic_parser])
371+
parser_clean_download_cache.add_argument('recipe',
372+
help='The recipe name')
371373

372374
parser_export_dist = add_parser(subparsers,
373375
'export_dist', aliases=['export-dist'],
@@ -587,9 +589,8 @@ def clean_download_cache(self, args):
587589
'''
588590
ctx = self.ctx
589591
msg = "Download cache removed!"
590-
591-
if args.unknown_args:
592-
for package in args.unknown_args[0].split(','):
592+
if args.recipe:
593+
for package in args.recipe.split(','):
593594
remove_path = join(ctx.packages_path, package)
594595
if exists(remove_path):
595596
shutil.rmtree(remove_path)

0 commit comments

Comments
 (0)