aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnubhav Shelat <ashelat@redhat.com>2023-06-28 12:42:26 -0400
committerJohn Kacur <jkacur@redhat.com>2023-06-28 16:58:17 -0400
commiteee2c79bb80e216908029d47ef9ad425170ce732 (patch)
treedf144dd2d88b69628e7f236a32fa1045902f93ee
parentd88895483c9fda5e121794220720689594aae981 (diff)
downloadrteval-eee2c79bb80e216908029d47ef9ad425170ce732.tar.gz
rteval: fixed comments
rteval-cmd: fixed typo __init__.py, rtevalConfig: changed comments to use argparse instead of optparse Signed-off-by: Anubhav Shelat <ashelat@redhat.com> Signed-off-by: John Kacur <jkacur@redhat.com>
-rwxr-xr-xrteval-cmd2
-rw-r--r--rteval/modules/__init__.py4
-rw-r--r--rteval/rtevalConfig.py2
3 files changed, 4 insertions, 4 deletions
diff --git a/rteval-cmd b/rteval-cmd
index ae94bd9..1f2ea08 100755
--- a/rteval-cmd
+++ b/rteval-cmd
@@ -183,7 +183,7 @@ def parse_options(cfg, parser, cmdargs):
ind = cmdargs.index('--summarize')
cmd_args = cmdargs[ind+1:]
cmdargs = cmdargs[:ind+1]
- # if -H/--raw-histogram is specified, add the files to be summarized to cmd_args, and add -Z to cmd_opts
+ # if -H/--raw-histogram is specified, add the files to be summarized to cmd_args, and add -H to cmd_opts
elif (sys.argv.count('-H')+sys.argv.count('--raw-histogram')) > 0:
try:
ind = cmdargs.index('-H')
diff --git a/rteval/modules/__init__.py b/rteval/modules/__init__.py
index 253e72a..794135d 100644
--- a/rteval/modules/__init__.py
+++ b/rteval/modules/__init__.py
@@ -292,7 +292,7 @@ the information provided by the module"""
def SetupModuleOptions(self, parser, config):
- """Sets up a separate optptarse OptionGroup per module with its supported parameters"""
+ """Sets up a separate argparse ArgumentGroup per module with its supported parameters"""
grparser = parser.add_argument_group("Group Options for %s modules" % self.__modtype)
grparser.add_argument('--%s-cpulist' % self.__modtype,
@@ -451,7 +451,7 @@ class RtEvalModules:
return self.__modules.GetModulesList()
def SetupModuleOptions(self, parser):
- "Sets up optparse based option groups for the loaded modules"
+ "Sets up argparse based argument groups for the loaded modules"
return self.__modules.SetupModuleOptions(parser, self._cfg)
def GetNamedModuleObject(self, modname):
diff --git a/rteval/rtevalConfig.py b/rteval/rtevalConfig.py
index ec14a13..d0115a0 100644
--- a/rteval/rtevalConfig.py
+++ b/rteval/rtevalConfig.py
@@ -291,7 +291,7 @@ class rtevalConfig:
last_sect = None
for sk, v in sorted(vars(cmd_opts).items()):
- # optparse key template: {sectionname}___{key}
+ # argparse key template: {sectionname}___{key}
k = sk.split('___')
if k[0] != last_sect:
# If the section name changed, retrieve the section variables