@@ -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')
@@ -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):
@@ -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