summaryrefslogtreecommitdiffstats
path: root/layman/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'layman/config.py')
-rw-r--r--layman/config.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/layman/config.py b/layman/config.py
index 3af852a..1e6c8a8 100644
--- a/layman/config.py
+++ b/layman/config.py
@@ -52,7 +52,7 @@ class Config(object):
>>> a['overlays']
'\\nhttp://www.gentoo.org/proj/en/overlays/layman-global.txt'
>>> sorted(a.keys())
- ['cache', 'config', 'local_list', 'make_conf', 'nocheck', 'overlays', 'proxy', 'quietness', 'storage', 'umask']
+ ['cache', 'config', 'local_list', 'make_conf', 'nocheck', 'overlays', 'proxy', 'quietness', 'storage', 'umask', 'width']
'''
self.defaults = {'config' : '/etc/layman/layman.cfg',
@@ -197,6 +197,15 @@ class Config(object):
' you set this below 2 the same warning as given for --'
'quiet applies! ')
+ group.add_option('-W',
+ '--width',
+ action = 'store',
+ type = 'int',
+ default = '0',
+ help = 'Sets the screen width. This setting is usually '
+ 'not required as layman is capable of detecting the ava'
+ 'available number of columns automatically.')
+
group.add_option('-k',
'--nocheck',
action = 'store_true',