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:
parent
d998bf616c
commit
f2346ce5f0
@ -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~~
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user