Updated to be Python3 Based
This commit is contained in:
19
src/__main__.py
Normal file
19
src/__main__.py
Normal file
@@ -0,0 +1,19 @@
|
||||
|
||||
# Python imports
|
||||
import argparse
|
||||
|
||||
# Application imports
|
||||
from __init__ import Main
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
try:
|
||||
parser = argparse.ArgumentParser()
|
||||
# Add long and short arguments
|
||||
parser.add_argument("--theme", "-t", default="default", help="The theme to use for the menu. (default, orange, red, purple, green)")
|
||||
|
||||
# Read arguments (If any...)
|
||||
args = parser.parse_args()
|
||||
main = Main(args)
|
||||
except Exception as e:
|
||||
print( repr(e) )
|
||||
Reference in New Issue
Block a user