# HG changeset patch # User Jeff Hammel # Date 1340920097 25200 # Node ID f7bc409add340f2a751d67ead95661d5aafe97c2 # Parent cbd0f0aea3e54f7bca0bf4a2bae5e1fd1333316a alter some comments diff -r cbd0f0aea3e5 -r f7bc409add34 configuration/configuration.py --- a/configuration/configuration.py Mon Jun 25 15:45:27 2012 -0700 +++ b/configuration/configuration.py Thu Jun 28 14:48:17 2012 -0700 @@ -103,8 +103,9 @@ configuration_providers.append(YAML()) -# TODO: add a configuration provider for taking command-line arguments -# from a file +# TODO: add configuration providers +# - for taking command-line arguments from a file +# - for .ini files __all__.extend([i.__class__.__name__ for i in configuration_providers]) @@ -185,7 +186,6 @@ # TODO: could use 'extend' # - http://hg.mozilla.org/build/mozharness/file/5f44ba08f4be/mozharness/base/config.py#l41 - # TODO: what about nested types? kw['action'] = 'append' return args, kw @@ -222,8 +222,6 @@ raise AssertionError("Each value must be delimited by '%s': %s" % (self.delimeter, value)) return value.split(self.delimeter, 1) -# TODO: 'dict'-type cli interface - types = {bool: BoolCLI(), int: IntCLI(), float: FloatCLI(),