summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Sackman <matthew@lshift.net>2010-03-29 15:54:31 +0100
committerMatthew Sackman <matthew@lshift.net>2010-03-29 15:54:31 +0100
commita08204d2d802d50480be244c6e73a5d3e5de8be1 (patch)
tree5cb6a6bf9317a2f9d386e7214aef851eb75d9d50
parentf1654bf5046d83c3ec7ae3750a1cc4b8a34aa3e0 (diff)
parent5409a68783e6e909fe8ed4dcc018a23654758179 (diff)
downloadrabbitmq-server-a08204d2d802d50480be244c6e73a5d3e5de8be1.tar.gz
Merging heads of default
-rw-r--r--docs/usage.xsl4
-rw-r--r--src/rabbit_control.erl3
-rw-r--r--src/rabbit_multi.erl3
3 files changed, 6 insertions, 4 deletions
diff --git a/docs/usage.xsl b/docs/usage.xsl
index 943333d8..72f8880a 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">
@@ -58,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 -->
diff --git a/src/rabbit_control.erl b/src/rabbit_control.erl
index f2f29169..d1834b3b 100644
--- a/src/rabbit_control.erl
+++ b/src/rabbit_control.erl
@@ -131,7 +131,8 @@ stop() ->
ok.
usage() ->
- rabbit_ctl_usage:usage().
+ io:format("~s", [rabbit_ctl_usage:usage()]),
+ halt(1).
action(stop, Node, [], Inform) ->
Inform("Stopping and halting node ~p", [Node]),
diff --git a/src/rabbit_multi.erl b/src/rabbit_multi.erl
index 9ff2c5cb..336f74bf 100644
--- a/src/rabbit_multi.erl
+++ b/src/rabbit_multi.erl
@@ -87,7 +87,8 @@ stop() ->
ok.
usage() ->
- rabbit_multi_usage:usage().
+ io:format("~s", [rabbit_multi_usage:usage()]),
+ halt(1).
action(start_all, [NodeCount], RpcTimeout) ->
io:format("Starting all nodes...~n", []),