diff options
| author | Matthew Sackman <matthew@lshift.net> | 2010-04-01 12:00:26 +0100 |
|---|---|---|
| committer | Matthew Sackman <matthew@lshift.net> | 2010-04-01 12:00:26 +0100 |
| commit | 7c691d118046c391dd03da7400aac4b371aa7b97 (patch) | |
| tree | dba61b671d8e3aff34779c8ccec2cbd114ca1c63 /docs/usage.xsl | |
| parent | cd1f96394e75496569201206a2db2ad80a9a1f83 (diff) | |
| parent | 11783f7e7dd9e0a1382826093680c338664e4c57 (diff) | |
| download | rabbitmq-server-git-7c691d118046c391dd03da7400aac4b371aa7b97.tar.gz | |
Merging in from default
Diffstat (limited to 'docs/usage.xsl')
| -rw-r--r-- | docs/usage.xsl | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/docs/usage.xsl b/docs/usage.xsl index 841b2a8461..72f8880ab1 100644 --- a/docs/usage.xsl +++ b/docs/usage.xsl @@ -12,19 +12,17 @@ encoding="UTF-8" indent="no"/> <xsl:strip-space elements="*"/> -<xsl:preserve-space elements="term" /> +<xsl:preserve-space elements="cmdsynopsis arg" /> <xsl:template match="/"> <!-- Pull out cmdsynopsis to show the command usage line. -->%% Generated, do not edit! -module(<xsl:value-of select="$modulename" />). -export([usage/0]). -usage() -> io:format(%QUOTE%Usage: +usage() -> %QUOTE%Usage: <xsl:value-of select="refentry/refsynopsisdiv/cmdsynopsis/command"/> <xsl:text> </xsl:text> <xsl:for-each select="refentry/refsynopsisdiv/cmdsynopsis/arg"> - <xsl:if test="@choice='opt'">[</xsl:if> <xsl:apply-templates select="." /> - <xsl:if test="@choice='opt'">]</xsl:if> <xsl:text> </xsl:text> </xsl:for-each> @@ -60,7 +58,7 @@ usage() -> io:format(%QUOTE%Usage: </xsl:for-each> <xsl:apply-templates select=".//*[title='Commands']/refsect2" mode="command-usage" /> -%QUOTE%), halt(1). +%QUOTE%. </xsl:template> <!-- Option lists in command usage --> @@ -74,7 +72,7 @@ usage() -> io:format(%QUOTE%Usage: <!-- Don't show anything else in command usage --> <xsl:template match="text()" mode="command-usage"/> -<xsl:template match="option">[<xsl:apply-templates/>]</xsl:template> +<xsl:template match="arg[@choice='opt']">[<xsl:apply-templates/>]</xsl:template> <xsl:template match="replaceable"><<xsl:value-of select="."/>></xsl:template> </xsl:stylesheet> |
