summaryrefslogtreecommitdiff
path: root/src/get_args.py
diff options
context:
space:
mode:
authorChandler J <cjustice2000@gmail.com>2023-12-11 20:38:07 -0700
committerGitHub <noreply@github.com>2023-12-11 20:38:07 -0700
commitc11972edf3e08112d94083f0d3ccb7abec77df19 (patch)
tree9fa7aef82b2fe2ad0f457acc7c821f14c1eef7d1 /src/get_args.py
parentf029061dad768be5e7c39c1f6152660a0bbaf050 (diff)
parentc8f2a2635ec90499bd2ec75969f222f398c1bbc5 (diff)
Merge pull request #1 from chandlerj/refactor
Refactor
Diffstat (limited to 'src/get_args.py')
-rw-r--r--src/get_args.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/get_args.py b/src/get_args.py
new file mode 100644
index 0000000..0001abb
--- /dev/null
+++ b/src/get_args.py
@@ -0,0 +1,10 @@
+import user_interface
+
+def get_args(args):
+ if len(args) != 2:
+ pass
+ elif '-r' in args:
+ img_path = user_interface.pickRandomWallpaper()
+ else:
+ img_path = args[1]
+ return img_path