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 | 53ec348a897d392ae7123efa77d7d5cc3455e19e (patch) | |
tree | ad2ee395e14c5bc45a93a57af0d4ab874b9e85b1 /config.py | |
parent | e4293652d5b2a80725e6f83843f91364e19ba199 (diff) | |
download | layman-53ec348a897d392ae7123efa77d7d5cc3455e19e.tar.gz layman-53ec348a897d392ae7123efa77d7d5cc3455e19e.tar.bz2 layman-53ec348a897d392ae7123efa77d7d5cc3455e19e.zip |
Layman v1.1
Diffstat (limited to 'config.py')
-rw-r--r-- | config.py | 19 |
1 files changed, 17 insertions, 2 deletions
@@ -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'] |