summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorSimon MacMullen <simon@lshift.net>2010-03-24 10:24:50 +0000
committerSimon MacMullen <simon@lshift.net>2010-03-24 10:24:50 +0000
commit9e86ec60fe85175fd9616e2e9724e757160c7e35 (patch)
tree0edc40858e71075b43e7a3463aaf3f6c57b2e930 /docs
parentb2de145777065528fa258cef162f44ae29d54d33 (diff)
downloadrabbitmq-server-git-9e86ec60fe85175fd9616e2e9724e757160c7e35.tar.gz
Make the generated usage functions just return a string, not print and halt.
Diffstat (limited to 'docs')
-rw-r--r--docs/usage.xsl4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/usage.xsl b/docs/usage.xsl
index 841b2a8461..f2e4c822cc 100644
--- a/docs/usage.xsl
+++ b/docs/usage.xsl
@@ -18,7 +18,7 @@
<!-- 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">
@@ -60,7 +60,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 -->