#N/A: Add slow_commands and wait_slow_command settings options

This commit is contained in:
Vladimir Iakovlev
2016-08-13 18:55:11 +03:00
parent fdfbfc80c0
commit 5f79217e97
5 changed files with 37 additions and 18 deletions
+3 -3
View File
@@ -92,13 +92,13 @@ class Settings(dict):
return self._rules_from_env(val)
elif attr == 'priority':
return dict(self._priority_from_env(val))
elif attr == 'wait_command':
elif attr in ('wait_command', 'history_limit', 'wait_slow_command'):
return int(val)
elif attr in ('require_confirmation', 'no_colors', 'debug',
'alter_history'):
return val.lower() == 'true'
elif attr == 'history_limit':
return int(val)
elif attr == 'slow_commands':
return val.split(':')
else:
return val