diff options
author | Laurie Clark-Michalek <bluepeppers@archlinux.us> | 2011-06-06 23:13:10 +0000 |
---|---|---|
committer | Laurie Clark-Michalek <bluepeppers@archlinux.us> | 2011-06-06 23:13:10 +0000 |
commit | c4f36f7b7e60ba2e69ac0e99a33bbe12510a5b4c (patch) | |
tree | 94f1743b8ee6963e192b37f4cf5badc788ea159c | |
parent | 5c7a458ed49853c86647402d0796724bf682d424 (diff) |
Fixed problem with options/config class when defigning colorscheme
-rwxr-xr-x | archey3 | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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', |