Skip to content

Commit

Permalink
added --quiet flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Ignace Mouzannar authored and Ignace Mouzannar committed Aug 12, 2013
1 parent 15a82ac commit c827ae4
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions lshell/checkconfig.py
Expand Up @@ -73,7 +73,11 @@
Type '?' or 'help' to get the list of allowed commands"""

# configuration parameters
configparams = [ 'log=',
configparams = [ 'config=',
'help',
'version',
'quiet=',
'log=',
'logpath=',
'loglevel=',
'logfilename=',
Expand Down Expand Up @@ -150,12 +154,10 @@ def getoptions(self, arguments, conf):
# set configfile as default configuration file
conf['configfile'] = configfile

params = configparams + ['config=', 'help', 'version']

try:
optlist, args = getopt.getopt(arguments,
'hc:',
params)
configparams)
except getopt.GetoptError:
self.stderr.write('Missing or unknown argument(s)\n')
self.usage()
Expand Down Expand Up @@ -517,7 +519,8 @@ def get_config_user(self):
'prompt_short',
'allowed_cmd_path',
'history_size',
'login_script']:
'login_script',
'quiet']:
try:
if len(self.conf_raw[item]) == 0:
self.conf[item] = ""
Expand Down

0 comments on commit c827ae4

Please sign in to comment.