1
0
mirror of https://github.com/Melon-Bread/RetroUFO synced 2025-02-26 14:49:32 -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 which architecture you are downloading format
- Choose what platform you are downloading format - Choose what platform you are downloading format
- Download progress bar - Download progress bar
- Keep downloaded archives - ~~Keep downloaded archives~~

View File

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