Add Automation for generating the packstack man page
- packstack/installer/run_setup.py: Modified a little bit the printOptions() function to get a better rendering (more rst file friendly). - docs/conf.py: The code added is largely inspired by the printOptions() function. - This should definitely keep the man page synchronized with code ! Change-Id: I4b899d6b78be860da1ec05341e2f7a36a4c4f71c
This commit is contained in:
@@ -747,7 +747,8 @@ def printOptions():
|
||||
cmdOption = param.CONF_NAME
|
||||
paramUsage = param.USAGE
|
||||
optionsList = param.OPTION_LIST or ""
|
||||
print "%s : %s %s"%(("**%s**"%str(cmdOption)).ljust(30), paramUsage, optionsList)
|
||||
print "%s" % (("**%s**"%str(cmdOption)).ljust(30))
|
||||
print " %s %s" % (paramUsage, optionsList)
|
||||
print
|
||||
|
||||
def plugin_compare(x, y):
|
||||
|
||||
Reference in New Issue
Block a user