Fix help message printing. Might need to clean up the handling of the sys.exit(...
authorKevin Lim <ktlim@umich.edu>
Thu, 13 Jul 2006 16:21:21 +0000 (12:21 -0400)
committerKevin Lim <ktlim@umich.edu>
Thu, 13 Jul 2006 16:21:21 +0000 (12:21 -0400)
src/python/m5/main.py:
    Fix help message printing.

--HG--
extra : convert_revision : 6906234101eb7ff7df7933e9aede0362b5a991bd

src/python/m5/main.py

index 54c54c1d5d9c57d8dbd72eb31de87c85fb3efeec..aae74d3711d10edbda8ce39d67de39bd83ced362 100644 (file)
@@ -182,7 +182,7 @@ options = attrdict()
 arguments = []
 
 def usage(exitcode=None):
-    print parser.help
+    print parser.print_help()
     if exitcode is not None:
         sys.exit(exitcode)