0002389: Command line reference tool is broken (plugins/CmdRef.py)
svn: r11070
This commit is contained in:
parent
8cb51d4392
commit
e94a81c944
@ -181,19 +181,12 @@ class CmdRef(Tool.Tool):
|
|||||||
|
|
||||||
if len(oclass.options_help[arg])>2:
|
if len(oclass.options_help[arg])>2:
|
||||||
if isinstance(oclass.options_help[arg][2], (list, tuple)):
|
if isinstance(oclass.options_help[arg][2], (list, tuple)):
|
||||||
if oclass.options_help[arg][3]:
|
if oclass.options_help[arg][2]:
|
||||||
f.write(' <orderedlist>\n')
|
f.write(' <itemizedlist>\n')
|
||||||
for val in oclass.options_help[arg][2]:
|
for val in oclass.options_help[arg][2]:
|
||||||
f.write( " <listitem><para>%s</para></listitem>\n"
|
f.write( " <listitem><para>%s</para>"
|
||||||
% escape(val))
|
"</listitem>\n" % escape(val))
|
||||||
f.write(' </orderedlist>\n')
|
f.write(' </itemizedlist>\n')
|
||||||
else:
|
|
||||||
if oclass.options_help[arg][2]:
|
|
||||||
f.write(' <itemizedlist>\n')
|
|
||||||
for val in oclass.options_help[arg][2]:
|
|
||||||
f.write( " <listitem><para>%s</para>"
|
|
||||||
"</listitem>\n" % escape(val))
|
|
||||||
f.write(' </itemizedlist>\n')
|
|
||||||
else:
|
else:
|
||||||
f.write(' '
|
f.write(' '
|
||||||
'<para>Value: <userinput>%s</userinput></para>\n'
|
'<para>Value: <userinput>%s</userinput></para>\n'
|
||||||
|
Loading…
Reference in New Issue
Block a user