changeset 307:9f593b71e2d4

what i meant
author Jeff Hammel <k0scist@gmail.com>
date Sun, 11 May 2014 10:21:10 -0700
parents ade2f3ef69a0
children 05a416e907f4
files autobot/config.py setup.py
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/autobot/config.py	Sun May 11 10:17:02 2014 -0700
+++ b/autobot/config.py	Sun May 11 10:21:10 2014 -0700
@@ -88,9 +88,13 @@
 def main(args=sys.argv[1:]):
     """parse the configuration, mostly for testing purposes"""
 
+    # parse command line
     parser = argparse.ArgumentParser(description="parse autobot .ini configuration")
     parser.add_argument('ini', help=".ini file to try to parse")
-    config = BuildbotIniConfig(parser.ini)
+    options = parser.parse_args(args)
+
+    # instantiate configuration
+    config = BuildbotIniConfig(options.ini)
 
 if __name__ == '__main__':
     main()
--- a/setup.py	Sun May 11 10:17:02 2014 -0700
+++ b/setup.py	Sun May 11 10:21:10 2014 -0700
@@ -8,7 +8,7 @@
 except IOError:
     description = short_description
 
-version = '0.1'
+version = '0.1.1'
 
 setup(name='autobot',
       version=version,