Mercurial > hg > configuration
comparison 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 |
comparison
equal
deleted
inserted
replaced
81:f3b2563b2a91 | 82:490687e70723 |
---|---|
15 'help': 'path to firefox'}, | 15 'help': 'path to firefox'}, |
16 'develop': {'help': "useful for running tests on a developer machine. Creates a local webserver and doesn't upload to the graph servers.", | 16 'develop': {'help': "useful for running tests on a developer machine. Creates a local webserver and doesn't upload to the graph servers.", |
17 'type': bool}, | 17 'type': bool}, |
18 'test_timeout': {'help': "Time to wait for the browser to output to the log file", | 18 'test_timeout': {'help': "Time to wait for the browser to output to the log file", |
19 'default': 1200}, | 19 'default': 1200}, |
20 'preferences': {'type': dict, | |
21 'flags': ['-p', '--pref']} | |
20 } | 22 } |
21 | 23 |
22 if __name__ == '__main__': | 24 if __name__ == '__main__': |
23 from pprint import pprint | 25 from pprint import pprint |
24 options, args = ExampleConfiguration().parse_args() | 26 options, args = ExampleConfiguration().parse_args() |