Patch from bmc to make options more readable

git-svn-id: file:///home/svn/incoming/trunk@3368 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Matt Miller 2006-01-11 22:15:04 +00:00
parent c81e6a799d
commit 859cf8bb0d
1 changed files with 11 additions and 6 deletions

View File

@ -330,10 +330,12 @@ class ReadableText
next if (!opt.advanced?)
val = mod.datastore[name] || opt.default || ''
desc = word_wrap(opt.desc, indent.length + 3)
desc = desc.slice(indent.length + 3, desc.length)
output += pad + "Name : #{name}\n"
output += pad + "Default: #{val}\n\n"
output += word_wrap(opt.desc, indent.length + 3)
output += pad + "Name : #{name}\n"
output += pad + "Default : #{val}\n"
output += pad + "Description: #{desc}\n"
}
return output
@ -352,10 +354,13 @@ class ReadableText
next if (!opt.evasion?)
val = mod.datastore[name] || opt.default || ''
desc = word_wrap(opt.desc, indent.length + 3)
desc = desc.slice(indent.length + 3, desc.length)
output += pad + "Name : #{name}\n"
output += pad + "Default: #{val}\n\n"
output += word_wrap(opt.desc, indent.length + 3)
output += pad + "Name : #{name}\n"
output += pad + "Default : #{val}\n"
output += pad + "Description: #{desc}\n"
}
return output