Mercurial > hg > PaInt
comparison paint/main.py @ 79:8cd1fe277856
docstrings
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Mon, 28 Jan 2013 18:52:59 -0800 |
parents | 7e9eb858d086 |
children | 758a3e56a738 |
comparison
equal
deleted
inserted
replaced
78:ab0620d3755b | 79:8cd1fe277856 |
---|---|
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 | 2 |
3 """ | 3 """ |
4 python PAckage INTrospection | 4 python PAckage INTrospection command line script |
5 """ | 5 """ |
6 | 6 |
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 | 12 """console script entry point for PaInt""" |
13 parser = commandparser.CommandParser(package.Package) | 13 parser = commandparser.CommandParser(package.Package) |
14 parser.invoke(args) | 14 parser.invoke(args) |
15 | 15 |
16 if __name__ == '__main__': | 16 if __name__ == '__main__': |
17 main() | 17 main() |