Skip to content

Fix clean_download_cache, add deleting of separate packages#886

Merged
inclement merged 2 commits into
kivy:masterfrom
KeyWeeUsr:master
Oct 7, 2016
Merged

Fix clean_download_cache, add deleting of separate packages#886
inclement merged 2 commits into
kivy:masterfrom
KeyWeeUsr:master

Conversation

@KeyWeeUsr

Copy link
Copy Markdown
Contributor

No description provided.

@inclement inclement left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice change, would you be able to make a small change to the structure as annotated? I moved away from handling arguments in the individual methods so that users get more informative error messages if the command is wrong.

Comment thread pythonforandroid/toolchain.py Outdated
msg = "Download cache removed!"

if args.unknown_args:
for package in args.unknown_args[0].split(','):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you replace this with a parser_clean_download_cache.add_argument('recipes') when the parser is defined, instead? That will mean that the user gets a helpful argparse error message if they don't explicitly pass the intended argument. You could also just allow any number of arguments (I think for argparse something like nargs='*') instead of requiring the comma separation.

@inclement inclement merged commit c0ed84d into kivy:master Oct 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants