Helper class: CMSHarvesterHelpFormatter.
More...
Helper class: CMSHarvesterHelpFormatter.
Helper class to add some customised help output to cmsHarvester.
We want to add some instructions, as well as a pointer to the CMS
Twiki.
Definition at line 152 of file cmsHarvester.py.
◆ format_usage()
def cmsHarvester.CMSHarvesterHelpFormatter.format_usage |
( |
|
self, |
|
|
|
usage |
|
) |
| |
Definition at line 160 of file cmsHarvester.py.
References join().
160 def format_usage(self, usage):
165 usage_lines.append(sep_line)
166 usage_lines.append(
"Welcome to the CMS harvester, a (hopefully useful)")
167 usage_lines.append(
"tool to create harvesting configurations.")
168 usage_lines.append(
"For more information please have a look at the CMS Twiki:")
169 usage_lines.append(
" %s" % twiki_url)
170 usage_lines.append(sep_line)
171 usage_lines.append(
"")
175 usage_lines.append(optparse.IndentedHelpFormatter. \
176 format_usage(self, usage))
178 formatted_usage =
"\n".
join(usage_lines)
179 return formatted_usage
static std::string join(char **cmd)