summaryrefslogtreecommitdiff
path: root/src/get_args.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/get_args.py')
-rw-r--r--src/get_args.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/get_args.py b/src/get_args.py
index da6476e..f878e77 100644
--- a/src/get_args.py
+++ b/src/get_args.py
@@ -2,11 +2,16 @@ import user_interface
import manage_saves
import os
from rich import print
+
+
def get_args(args, walls_dir) -> tuple:
# arguments that can be passed into program
+ VALID_ARGS = ['-r', '-p', '--initialize', '--reconfigure']
+
initialize = False
reconfigure = False
+
theme = None
VALID_ARGS = ['-r', '-p', '--initialize', '--reconfigure']
@@ -16,7 +21,6 @@ def get_args(args, walls_dir) -> tuple:
if isFile == True:
print("reached")
theme = manage_saves.load_theme(args[index + 1])
-
if '-r' in args:
img_path = user_interface.pickRandomWallpaper(walls_dir)
@@ -33,6 +37,7 @@ def get_args(args, walls_dir) -> tuple:
reconfigure = True
return img_path, initialize, reconfigure, theme
+
def usage(args) -> None:
print(f"""Instant Rice - An automatic theming utilitiy