mirror of
https://github.com/Melon-Bread/RetroUFO
synced 2025-02-19 11:43:04 -05:00
Initial argument support
This commit is contained in:
parent
a2dbf60288
commit
d998bf616c
@ -7,6 +7,7 @@ __author__ = "Melon Bread"
|
|||||||
__version__ = "0.1.0"
|
__version__ = "0.1.0"
|
||||||
__license__ = "MIT"
|
__license__ = "MIT"
|
||||||
|
|
||||||
|
import argparse
|
||||||
import os
|
import os
|
||||||
import zipfile
|
import zipfile
|
||||||
from shutil import rmtree
|
from shutil import rmtree
|
||||||
@ -19,7 +20,7 @@ PLATFORM = 'linux/x86_64'
|
|||||||
CORE_LOCATION = '~/.config/retroarch/cores/'
|
CORE_LOCATION = '~/.config/retroarch/cores/'
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main(args):
|
||||||
""" Where the magic happens """
|
""" Where the magic happens """
|
||||||
download_cores()
|
download_cores()
|
||||||
extract_cores()
|
extract_cores()
|
||||||
@ -79,5 +80,8 @@ def clean_up():
|
|||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
""" This is executed when run from the command line """
|
""" This is executed when run from the command line """
|
||||||
main()
|
parser = argparse.ArgumentParser()
|
||||||
|
|
||||||
|
args = parser.parse_args()
|
||||||
|
main(args)
|
||||||
pass
|
pass
|
||||||
|
Loading…
x
Reference in New Issue
Block a user