summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurie Clark-Michalek <bluepeppers@archlinux.us>2011-06-06 23:13:10 +0000
committerLaurie Clark-Michalek <bluepeppers@archlinux.us>2011-06-06 23:13:10 +0000
commitc4f36f7b7e60ba2e69ac0e99a33bbe12510a5b4c (patch)
tree94f1743b8ee6963e192b37f4cf5badc788ea159c
parent5c7a458ed49853c86647402d0796724bf682d424 (diff)
Fixed problem with options/config class when defigning colorscheme
-rwxr-xr-xarchey35
1 files changed, 3 insertions, 2 deletions
diff --git a/archey3 b/archey3
index 407c57d..952c30d 100755
--- a/archey3
+++ b/archey3
@@ -552,7 +552,8 @@ class Archey(object):
self.logger = Logger("Core", self.log_level)
self.display = config.get("core", "display_modules")
- colorscheme = options.color or config.get("core", "color")
+ colorscheme = options.color or config.get(
+ "core", "color", fallback="blue")
for key in COLORS.keys():
if key == colorscheme:
self.colorcode = COLORS[key]
@@ -692,7 +693,7 @@ def main():
screenshots""",
version="%prog 0.3")
parser.add_option('-c', '--color',
- action='store', default='blue', type='choice', dest='color',
+ action='store', type='choice', dest='color',
choices=('black',
'red',
'green',