1
0
mirror of https://github.com/Melon-Bread/RetroUFO synced 2024-11-25 00:38:33 -05:00

Added args to keep downloaded archives

This commit is contained in:
Rain Clark 2018-10-16 00:29:45 -04:00
parent d998bf616c
commit f2346ce5f0
2 changed files with 6 additions and 3 deletions

View File

@ -22,4 +22,4 @@ It will then download and extract all the (latest version) of each core to: `~/
- Choose which architecture you are downloading format
- Choose what platform you are downloading format
- Download progress bar
- Keep downloaded archives
- ~~Keep downloaded archives~~

View File

@ -24,8 +24,8 @@ def main(args):
""" Where the magic happens """
download_cores()
extract_cores()
clean_up()
pass
if not args.keep:
clean_up()
def download_cores():
@ -82,6 +82,9 @@ if __name__ == "__main__":
""" This is executed when run from the command line """
parser = argparse.ArgumentParser()
parser.add_argument('-k', '--keep', action='store_true',
help='Keeps downloaded core archives')
args = parser.parse_args()
main(args)
pass