summaryrefslogtreecommitdiffstats
path: root/layman/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'layman/config.py')
-rw-r--r--layman/config.py19
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']