Gabe Black has submitted this change. ( https://gem5-review.googlesource.com/c/public/gem5/+/50708 )

Change subject: python: Get rid of version arg in OptionParser constructor.
......................................................................

python: Get rid of version arg in OptionParser constructor.

This will report that gem5 is version 2.0, which is WILDLY out of date.
There are other ways of reporting the version of gem5 which are actually
kept up to date.

Change-Id: Ie09cdc8f3ef59696fe197c3491db102bda41ade0
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/50708
Reviewed-by: Andreas Sandberg <[email protected]>
Reviewed-by: Jason Lowe-Power <[email protected]>
Maintainer: Jason Lowe-Power <[email protected]>
Tested-by: kokoro <[email protected]>
---
M src/python/m5/main.py
1 file changed, 1 insertion(+), 3 deletions(-)

Approvals:
  Jason Lowe-Power: Looks good to me, approved; Looks good to me, approved
  Andreas Sandberg: Looks good to me, but someone else must approve
  kokoro: Regressions pass




diff --git a/src/python/m5/main.py b/src/python/m5/main.py
index 37a7002..b81da7a 100644
--- a/src/python/m5/main.py
+++ b/src/python/m5/main.py
@@ -45,7 +45,6 @@
 __all__ = [ 'options', 'arguments', 'main' ]

 usage="%prog [gem5 options] script.py [script options]"
-version="%prog 2.0"
 brief_copyright=\
     "gem5 is copyrighted software; use the --copyright option for details."

@@ -65,8 +64,7 @@
     from . import config
     from .options import OptionParser

-    options = OptionParser(usage=usage, version=version,
-                           description=brief_copyright)
+    options = OptionParser(usage=usage, description=brief_copyright)
     option = options.add_option
     group = options.set_group


--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/50708
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: Ie09cdc8f3ef59696fe197c3491db102bda41ade0
Gerrit-Change-Number: 50708
Gerrit-PatchSet: 2
Gerrit-Owner: Gabe Black <[email protected]>
Gerrit-Reviewer: Andreas Sandberg <[email protected]>
Gerrit-Reviewer: Bobby R. Bruce <[email protected]>
Gerrit-Reviewer: Gabe Black <[email protected]>
Gerrit-Reviewer: Jason Lowe-Power <[email protected]>
Gerrit-Reviewer: Jason Lowe-Power <[email protected]>
Gerrit-Reviewer: kokoro <[email protected]>
Gerrit-MessageType: merged
_______________________________________________
gem5-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to