Mercurial > hg > pyloader
comparison pyloader/factory.py @ 29:000e175169c2
use IniFactory.__doc__ as parser description
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Mon, 06 Jun 2011 11:18:31 -0700 |
parents | 4b757f73e8ca |
children | 850d31be0fb8 |
comparison
equal
deleted
inserted
replaced
28:bd50a1317ec4 | 29:000e175169c2 |
---|---|
146 return config | 146 return config |
147 | 147 |
148 def main(args=sys.argv[1:]): | 148 def main(args=sys.argv[1:]): |
149 """command line entry point""" | 149 """command line entry point""" |
150 usage = '%prog file1.ini -arg1 -arg2 --key1=value1 --key2=value2' | 150 usage = '%prog file1.ini -arg1 -arg2 --key1=value1 --key2=value2' |
151 parser = OptionParser(usage=usage) | 151 parser = OptionParser(usage=usage, description=IniFactory.__doc__) |
152 options, args = parser.parse_args(args) | 152 options, args = parser.parse_args(args) |
153 | 153 |
154 if len(args) != 1: | 154 if len(args) != 1: |
155 parser.print_usage() | 155 parser.print_usage() |
156 parser.exit() | 156 parser.exit() |