summaryrefslogtreecommitdiffstats
path: root/rteval-cmd
diff options
context:
space:
mode:
authorDavid Sommerseth <davids@redhat.com>2012-12-19 17:07:38 +0100
committerDavid Sommerseth <davids@redhat.com>2012-12-19 17:07:38 +0100
commit77fcdf51e62efa910eb25eb055fa8909f6ea71cf (patch)
treea61801f276a4efb20d1622d37e8ea508eb730f23 /rteval-cmd
parent96d0f3853fbac2b05dfb9fa97372f3a354083dd2 (diff)
downloadrteval-77fcdf51e62efa910eb25eb055fa8909f6ea71cf.tar.gz
rteval-77fcdf51e62efa910eb25eb055fa8909f6ea71cf.tar.xz
rteval-77fcdf51e62efa910eb25eb055fa8909f6ea71cf.zip
Instead of passing the config class a few places, save it in __init__()
This cleans up the API a little bit, and lets the configuration access become a bit easier in the load and measurement classes. Signed-off-by: David Sommerseth <davids@redhat.com>
Diffstat (limited to 'rteval-cmd')
-rwxr-xr-xrteval-cmd2
1 files changed, 1 insertions, 1 deletions
diff --git a/rteval-cmd b/rteval-cmd
index b1b4333..9708e10 100755
--- a/rteval-cmd
+++ b/rteval-cmd
@@ -231,7 +231,7 @@ if __name__ == '__main__':
# parse command line options
parser = optparse.OptionParser()
- loadmods.SetupModuleOptions(parser, config)
+ loadmods.SetupModuleOptions(parser)
measuremods.SetupModuleOptions(parser)
cmd_args = parse_options(config, parser, sys.argv[1:])