summaryrefslogtreecommitdiff
path: root/src/get_args.py
diff options
context:
space:
mode:
authorChandler J <cjustice2000@gmail.com>2024-04-12 20:54:00 -0600
committerGitHub <noreply@github.com>2024-04-12 20:54:00 -0600
commit8a1903bb16d9e04795c33f3eb226486d06e8a642 (patch)
treee8fc9dc0bb690cc1976a47fe1166f4bafcafcb40 /src/get_args.py
parent95e73b141ca8f3618701ff59658ef519353cc7c0 (diff)
parent2564189a769a5bd3de63086bb62dc3532d1b07b9 (diff)
Merge branch 'main' into saves
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