diff options
author | Gunnar Wrobel <p@rdus.de> | 2007-09-11 09:34:48 +0000 |
---|---|---|
committer | Gunnar Wrobel <p@rdus.de> | 2007-09-11 09:34:48 +0000 |
commit | c8d258ef16d97e51ecdba271658068ddf00b8a5f (patch) | |
tree | 70b64c6b620e49a87f4e0cc4ce4082c0ca42dd4f /layman/config.py | |
parent | 387b74f15929efbdce79a6fbf12448f90bb83766 (diff) | |
download | layman-c8d258ef16d97e51ecdba271658068ddf00b8a5f.tar.gz layman-c8d258ef16d97e51ecdba271658068ddf00b8a5f.tar.bz2 layman-c8d258ef16d97e51ecdba271658068ddf00b8a5f.zip |
Layman v1.1
Diffstat (limited to 'layman/config.py')
-rw-r--r-- | layman/config.py | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/layman/config.py b/layman/config.py index 287f223..d13806f 100644 --- a/layman/config.py +++ b/layman/config.py @@ -61,7 +61,7 @@ class Config(object): 'cache' : '%(storage)s/cache', 'local_list': '%(storage)s/overlays.xml', 'make_conf' : '%(storage)s/make.conf', - 'nocheck' : 'no', + 'nocheck' : 'yes', 'proxy' : '', 'overlays' : 'http://www.gentoo.org/proj/en/overlays/layman-global.' @@ -98,6 +98,12 @@ class Config(object): help = 'Update the specified overlay. Use "ALL" as para' 'meter to synchronize all overlays') + group.add_option('-i', + '--info', + action = 'append', + help = 'Display information about the specified overlay' + '.') + group.add_option('-S', '--sync-all', action = 'store_true', @@ -164,7 +170,8 @@ class Config(object): group.add_option('-v', '--verbose', action = 'store_true', - help = 'Increase amount of output.') + help = 'Increase the amount of output and describe the ' + 'overlays.') group.add_option('-q', '--quiet', @@ -176,6 +183,11 @@ class Config(object): 'xample if your overlay resides in subversion and the S' 'SL certificate of the server needs acceptance.') + group.add_option('-N', + '--nocolor', + action = 'store_true', + help = 'Remove color codes from the layman output.') + group.add_option('-Q', '--quietness', action = 'store', @@ -206,6 +218,9 @@ class Config(object): # handle debugging OUT.cli_handle(self.options) + if self.options.__dict__['nocolor']: + OUT.color_off() + # Fetch only an alternate config setting from the options if not self.options.__dict__['config'] is None: self.defaults['config'] = self.options.__dict__['config'] |