As pointed out on the users list, the script se.py is broken. The
following changes would fix the script for the time being, but I think we
need some way to specify dependence between options. Does anyone have any
idea about this? As I understand, optparse does not support dependency
between options.
diff --git a/configs/example/se.py b/configs/example/se.py
--- a/configs/example/se.py
+++ b/configs/example/se.py
@@ -71,15 +71,12 @@
parser.add_option("--output", default="", help="Redirect stdout to a
file.")
parser.add_option("--errout", default="", help="Redirect stderr to a
file.")
parser.add_option("--ruby", action="store_true")
+Ruby.define_options(parser)
execfile(os.path.join(config_root, "common", "Options.py"))
(options, args) = parser.parse_args()
-if options.ruby:
- Ruby.define_options(parser)
- (options, args) = parser.parse_args()
-
if args:
print "Error: script doesn't take any positional arguments"
sys.exit(1)
--
Nilay
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev