Mercurial > hg > PaInt
comparison paint/main.py @ 27:7e9eb858d086
oops
| author | Jeff Hammel <jhammel@mozilla.com> |
|---|---|
| date | Fri, 30 Mar 2012 10:05:45 -0700 |
| parents | 8beffeb750b3 |
| children | 8cd1fe277856 |
comparison
equal
deleted
inserted
replaced
| 26:8beffeb750b3 | 27:7e9eb858d086 |
|---|---|
| 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[:]): | 11 def main(args=sys.argv[1:]): |
| 12 | 12 |
| 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__': |
