Mercurial > hg > PaInt
annotate paint/main.py @ 81:4446cba4cee6
update CommandParser and docstring for it
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Mon, 28 Jan 2013 19:57:30 -0800 |
parents | 758a3e56a738 |
children |
rev | line source |
---|---|
0 | 1 #!/usr/bin/env python |
2 | |
3 """ | |
79 | 4 python PAckage INTrospection command line script |
0 | 5 """ |
6 | |
26
8beffeb750b3
begin to add command parser
Jeff Hammel <jhammel@mozilla.com>
parents:
3
diff
changeset
|
7 import commandparser |
8beffeb750b3
begin to add command parser
Jeff Hammel <jhammel@mozilla.com>
parents:
3
diff
changeset
|
8 import package |
0 | 9 import sys |
10 | |
27 | 11 def main(args=sys.argv[1:]): |
80 | 12 """ |
13 console script entry point for PaInt. uses CommandParser: | |
14 http://k0s.org/hg/CommandParser | |
15 """ | |
26
8beffeb750b3
begin to add command parser
Jeff Hammel <jhammel@mozilla.com>
parents:
3
diff
changeset
|
16 parser = commandparser.CommandParser(package.Package) |
8beffeb750b3
begin to add command parser
Jeff Hammel <jhammel@mozilla.com>
parents:
3
diff
changeset
|
17 parser.invoke(args) |
0 | 18 |
19 if __name__ == '__main__': | |
1 | 20 main() |