From f1a60906132fb816f80917d830b34df5e5d87ad4 Mon Sep 17 00:00:00 2001 From: Andreas Hansson Date: Thu, 5 Apr 2012 10:45:26 -0400 Subject: Ruby: Fix the example configurations option parsing This patch fixes the, currently broken, Ruby example scripts to reflect the changes in the parsing of command-line options. --- configs/example/ruby_direct_test.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'configs/example/ruby_direct_test.py') diff --git a/configs/example/ruby_direct_test.py b/configs/example/ruby_direct_test.py index 7f38d5431..53a1b6850 100644 --- a/configs/example/ruby_direct_test.py +++ b/configs/example/ruby_direct_test.py @@ -36,6 +36,7 @@ import os, optparse, sys addToPath('../common') addToPath('../ruby') +import Options import Ruby # Get paths we might need. It's expected this file is in m5/configs/example. @@ -44,6 +45,7 @@ config_root = os.path.dirname(config_path) m5_root = os.path.dirname(config_root) parser = optparse.OptionParser() +Options.addCommonOptions(parser) parser.add_option("-l", "--requests", metavar="N", default=100, help="Stop after N requests") -- cgit v1.2.3