1{* $Id$ *}
2{* Show help for debugger commands *}
3
4{if $command_result.action eq 'one'}
5
6	{* Show help about single command *}
7	<table border="0">
8		<tr>
9			<td width="15%"><code>{$command_result.name}</code></td>
10			<td>{$command_result.description} </td>
11		</tr>
12		<tr><td><br></td></tr>
13		<tr>
14			<td></td>
15			<td> {tr}Syntax:{/tr} <pre>{$command_result.syntax}</pre> </td>
16		</tr>
17		<tr><td><br></td></tr>
18		<tr>
19			<td></td>
20			<td> {tr}Example:{/tr} <pre>{$command_result.example}</pre> </td>
21		</tr>
22	</table>
23
24{elseif $command_result.action eq 'list'}
25
26	{* Show help for all available commands. There is any time at
27		least one command present: 'help' -- its appended by debugger itself
28	*}
29	<table border="0">
30		{section name=i loop=$command_result[0]}
31			<tr>
32				<td width="15%"><code>{$command_result[0][i].cmd}</code></td>
33				<td>{$command_result[0][i].description}</td>
34			</tr>
35		{/section}
36	</table>
37{/if}
38