fix help when no arguments are passed to m5
authorAli Saidi <saidi@eecs.umich.edu>
Thu, 13 Jul 2006 19:48:41 +0000 (15:48 -0400)
committerAli Saidi <saidi@eecs.umich.edu>
Thu, 13 Jul 2006 19:48:41 +0000 (15:48 -0400)
--HG--
extra : convert_revision : ee6614166fd5814654309298abe5a706ff02c4c2

src/python/m5/main.py

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