comparison paint/main.py @ 80:758a3e56a738

even better docstring
author Jeff Hammel <jhammel@mozilla.com>
date Mon, 28 Jan 2013 19:08:45 -0800
parents 8cd1fe277856
children
comparison
equal deleted inserted replaced
79:8cd1fe277856 80:758a3e56a738
7 import commandparser 7 import commandparser
8 import package 8 import package
9 import sys 9 import sys
10 10
11 def main(args=sys.argv[1:]): 11 def main(args=sys.argv[1:]):
12 """console script entry point for PaInt""" 12 """
13 console script entry point for PaInt. uses CommandParser:
14 http://k0s.org/hg/CommandParser
15 """
13 parser = commandparser.CommandParser(package.Package) 16 parser = commandparser.CommandParser(package.Package)
14 parser.invoke(args) 17 parser.invoke(args)
15 18
16 if __name__ == '__main__': 19 if __name__ == '__main__':
17 main() 20 main()