summaryrefslogtreecommitdiffstats
path: root/src/__main__.py
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-02-23 18:28:08 +0100
committerMattias Andrée <maandree@operamail.com>2014-02-23 18:28:08 +0100
commiteba359fbf047785d96e6140a8c06e1acc5449854 (patch)
tree2bf96a167ec91c40c18b22412583d930dcaa1fa0 /src/__main__.py
parentupdate dist (diff)
downloadblueshift-eba359fbf047785d96e6140a8c06e1acc5449854.tar.gz
blueshift-eba359fbf047785d96e6140a8c06e1acc5449854.tar.bz2
blueshift-eba359fbf047785d96e6140a8c06e1acc5449854.tar.xz
check conf script args in ad-hoc mode
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/__main__.py')
-rwxr-xr-xsrc/__main__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/__main__.py b/src/__main__.py
index 7df36c5..8270178 100755
--- a/src/__main__.py
+++ b/src/__main__.py
@@ -374,6 +374,8 @@ for opt in ('--gamma', '--brightness', '++brightness', '--temperature'):
settings = [gammas, rgb_brightnesses, cie_brightnesses, temperatures]
if (config_file is None) and any([doreset, location] + settings):
## Use one time configurations
+ if len(parser.files) > 0:
+ print('%s: warning: configuration script arguments are not supported in ad-hoc mode' % sys.argv[0])
d = lambda a, default : [default, default] if a is None else (a * 2 if len(a) == 1 else a)
continuous = any(map(lambda a : (a is not None) and (len(a) == 2), settings))
continuous = continuous or (location is not None)