Changeset 1923 for pykota/trunk/pykota/tool.py
- Timestamp:
- 11/15/04 23:01:34 (19 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/tool.py
r1918 r1923 22 22 # 23 23 # $Log$ 24 # Revision 1.141 2004/11/15 22:01:34 jalet 25 # Improved banner handling. 26 # Fix for raw printing and banners. 27 # 24 28 # Revision 1.140 2004/11/15 19:59:34 jalet 25 29 # PyKota banners now basically work ! … … 626 630 def display_version_and_quit(self) : 627 631 """Displays version number, then exists successfully.""" 628 self.clean() 632 try : 633 self.clean() 634 except AttributeError : 635 pass 629 636 print version.__version__ 630 637 sys.exit(0) … … 632 639 def display_usage_and_quit(self) : 633 640 """Displays command line usage, then exists successfully.""" 634 self.clean() 641 try : 642 self.clean() 643 except AttributeError : 644 pass 635 645 print _(self.documentation) % (version.__version__, version.__author__) 636 646 sys.exit(0)