From e94a81c9442a2982295da0d16213f768b143baed Mon Sep 17 00:00:00 2001 From: Brian Matherly Date: Wed, 17 Sep 2008 12:07:00 +0000 Subject: [PATCH] 0002389: Command line reference tool is broken (plugins/CmdRef.py) svn: r11070 --- src/plugins/CmdRef.py | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/src/plugins/CmdRef.py b/src/plugins/CmdRef.py index b5b969afe..d1728e750 100644 --- a/src/plugins/CmdRef.py +++ b/src/plugins/CmdRef.py @@ -181,19 +181,12 @@ class CmdRef(Tool.Tool): if len(oclass.options_help[arg])>2: if isinstance(oclass.options_help[arg][2], (list, tuple)): - if oclass.options_help[arg][3]: - f.write(' \n') + if oclass.options_help[arg][2]: + f.write(' \n') for val in oclass.options_help[arg][2]: - f.write( " %s\n" - % escape(val)) - f.write(' \n') - else: - if oclass.options_help[arg][2]: - f.write(' \n') - for val in oclass.options_help[arg][2]: - f.write( " %s" - "\n" % escape(val)) - f.write(' \n') + f.write( " %s" + "\n" % escape(val)) + f.write(' \n') else: f.write(' ' 'Value: %s\n'