From eba359fbf047785d96e6140a8c06e1acc5449854 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 23 Feb 2014 18:28:08 +0100 Subject: check conf script args in ad-hoc mode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/__main__.py | 2 ++ 1 file changed, 2 insertions(+) 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) -- cgit v1.2.3-70-g09d2