diff tests/example.py @ 82:490687e70723

add a dict parser thingy
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 17 Apr 2012 12:50:10 -0700
parents 92c11cd1d27e
children c530f6265deb
line wrap: on
line diff
--- a/tests/example.py	Tue Apr 17 11:36:01 2012 -0700
+++ b/tests/example.py	Tue Apr 17 12:50:10 2012 -0700
@@ -17,6 +17,8 @@
                     'type': bool},
         'test_timeout': {'help': "Time to wait for the browser to output to the log file",
                          'default': 1200},
+        'preferences': {'type': dict,
+                        'flags': ['-p', '--pref']}
         }
 
 if __name__ == '__main__':