0

Added a "did you mean" feature for config parsing

This commit is contained in:
Andrew Brown
2012-02-14 21:12:15 -05:00
parent aaf8e1d7cb
commit f5d07fa597
2 changed files with 78 additions and 8 deletions

View File

@@ -61,7 +61,12 @@ class MultiWorldParser(object):
sys.exit(1)
def get_validated_config(self):
"""Validate and return the configuration"""
"""Validate and return the configuration. Raises a ValidationException
if there was a problem validating the config.
Could also raise a ValueError
"""
# Okay, this is okay, isn't it? We're going to create the validation
# routine right here, right now. I hope this works!
validator = settingsValidators.make_configDictValidator(self._settings, ignore_undefined=True)