annotate paint/main.py @ 83:7f442f585580

paint/package.py
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 17 Sep 2013 16:04:05 -0700
parents 758a3e56a738
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
96362e527bd6 initial package
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
1 #!/usr/bin/env python
96362e527bd6 initial package
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
2
96362e527bd6 initial package
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
3 """
79
8cd1fe277856 docstrings
Jeff Hammel <jhammel@mozilla.com>
parents: 27
diff changeset
4 python PAckage INTrospection command line script
0
96362e527bd6 initial package
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
5 """
96362e527bd6 initial package
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
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
96362e527bd6 initial package
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
9 import sys
96362e527bd6 initial package
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
10
27
Jeff Hammel <jhammel@mozilla.com>
parents: 26
diff changeset
11 def main(args=sys.argv[1:]):
80
758a3e56a738 even better docstring
Jeff Hammel <jhammel@mozilla.com>
parents: 79
diff changeset
12 """
758a3e56a738 even better docstring
Jeff Hammel <jhammel@mozilla.com>
parents: 79
diff changeset
13 console script entry point for PaInt. uses CommandParser:
758a3e56a738 even better docstring
Jeff Hammel <jhammel@mozilla.com>
parents: 79
diff changeset
14 http://k0s.org/hg/CommandParser
758a3e56a738 even better docstring
Jeff Hammel <jhammel@mozilla.com>
parents: 79
diff changeset
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
96362e527bd6 initial package
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
18
96362e527bd6 initial package
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
19 if __name__ == '__main__':
1
a011af5e765a spacing
Jeff Hammel <jhammel@mozilla.com>
parents: 0
diff changeset
20 main()