diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-02-25 13:38:07 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-02-25 13:38:07 +0100 |
commit | d9856fa55dabe6927922a8cca08d6b1313bdf628 (patch) | |
tree | 66e65425826f9da12b2ef668233b4a4ef685b4ef /src/__main__.py | |
parent | doc output search functions (diff) | |
download | blueshift-d9856fa55dabe6927922a8cca08d6b1313bdf628.tar.gz blueshift-d9856fa55dabe6927922a8cca08d6b1313bdf628.tar.bz2 blueshift-d9856fa55dabe6927922a8cca08d6b1313bdf628.tar.xz |
m bug + add example with output listing
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/__main__.py')
-rwxr-xr-x | src/__main__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/__main__.py b/src/__main__.py index 1e966ed..22973ac 100755 --- a/src/__main__.py +++ b/src/__main__.py @@ -363,6 +363,7 @@ temperatures = parser.opts['--temperature'] output = parser.opts['--output'] if output is None: output = [] +used_adhoc = any([doreset, location, gammas, rgb_brightnesses, cie_brightnesses, temperatures, output]) ## Verify option correctness a = lambda opt : 0 if parser.opts[opt] is None else len(parser.opts[opt]) @@ -429,7 +430,7 @@ else: ## Warn about ad-hoc settings if not uses_adhoc_opts: - if any([doreset, location, gammas, rgb_brightnesses, cie_brightnesses, temperatures, output]): + if used_adhoc: print('%s: warning: --configurations can only be combined with --panicgate' % sys.argv[0]) parser = None |