aboutsummaryrefslogtreecommitdiffstats
path: root/src/nightshift.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/nightshift.py')
-rwxr-xr-xsrc/nightshift.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nightshift.py b/src/nightshift.py
index 6ef2750..bda864b 100755
--- a/src/nightshift.py
+++ b/src/nightshift.py
@@ -223,7 +223,8 @@ for arg in sys.argv[1:]:
# Parse help request for -l and -m
for opt in ('-l', '-m'):
- if opt in red_opts:
+ i = 0
+ while opt in red_opts[i:]:
i = red_opts.index(opt) + 1
if not i == len(red_opts):
arg = red_opts[i]