summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMichael Klishin <mklishin@pivotal.io>2016-08-18 12:17:34 +0300
committerMichael Klishin <mklishin@pivotal.io>2016-08-18 12:17:34 +0300
commit754feab6936ff1954964bf04423a2758899b91dc (patch)
treed4d72c1ef7e84d994c52805a955e38d6967efd99 /docs
parentdad8511a6409816d3d8012fdb70213122bb690e4 (diff)
parent9f1c12f8ab553aab2da435f82a805da8b08c9149 (diff)
downloadrabbitmq-server-git-754feab6936ff1954964bf04423a2758899b91dc.tar.gz
Merge branch 'master' into rabbitmq-server-500-squashed
Conflicts: src/rabbit_control_main.erl
Diffstat (limited to 'docs')
-rw-r--r--docs/rabbitmqctl.1.xml41
-rw-r--r--docs/usage.xsl10
2 files changed, 46 insertions, 5 deletions
diff --git a/docs/rabbitmqctl.1.xml b/docs/rabbitmqctl.1.xml
index 9cd1198a28..a2ebc0b817 100644
--- a/docs/rabbitmqctl.1.xml
+++ b/docs/rabbitmqctl.1.xml
@@ -744,9 +744,7 @@
<varlistentry>
<term>
- <cmdsynopsis>
- <command>authenticate_user</command> <arg choice="req"><replaceable>username</replaceable></arg> <arg choice="req"><replaceable>password</replaceable></arg>
- </cmdsynopsis>
+ <cmdsynopsis><command>authenticate_user</command> <arg choice="req"><replaceable>username</replaceable></arg> <arg choice="req"><replaceable>password</replaceable></arg></cmdsynopsis>
</term>
<listitem>
<variablelist>
@@ -1281,7 +1279,9 @@
<variablelist>
<varlistentry role="usage-has-option-list">
- <term><cmdsynopsis><command>list_queues</command> <arg choice="opt">-p <replaceable>vhost</replaceable></arg> <arg choice="opt" role="usage-option-list"><replaceable>queueinfoitem</replaceable> ...</arg></cmdsynopsis></term>
+ <term>
+ <cmdsynopsis><command>list_queues</command> <arg choice="opt">-p <replaceable>vhost</replaceable></arg> <group choice="opt"><arg>--offline</arg><arg>--online</arg><arg>--local</arg></group> <arg choice="opt" role="usage-option-list"><replaceable>queueinfoitem</replaceable> ...</arg></cmdsynopsis>
+ </term>
<listitem>
<para>
Returns queue details. Queue details of the <command>/</command> virtual host
@@ -1289,6 +1289,39 @@
override this default.
</para>
<para>
+ Displayed queues can be filtered by their status or
+ location using one of the following mutually exclusive
+ options:
+ <variablelist>
+ <varlistentry>
+ <term><cmdsynopsis><arg choice="opt">--offline</arg></cmdsynopsis></term>
+ <listitem>
+ <para>
+ List only those durable queues that are not
+ currently available (more specifically, their master node isn't).
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><cmdsynopsis><arg choice="opt">--online</arg></cmdsynopsis></term>
+ <listitem>
+ <para>
+ List queues that are currently available (their master node is).
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><cmdsynopsis><arg choice="opt">--local</arg></cmdsynopsis></term>
+ <listitem>
+ <para>
+ List only those queues whose master process is
+ located on the current node.
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </para>
+ <para>
The <command>queueinfoitem</command> parameter is used to indicate which queue
information items to include in the results. The column order in the
results will match the order of the parameters.
diff --git a/docs/usage.xsl b/docs/usage.xsl
index 586f830327..0d3cb6f235 100644
--- a/docs/usage.xsl
+++ b/docs/usage.xsl
@@ -8,7 +8,7 @@
encoding="UTF-8"
indent="no"/>
<xsl:strip-space elements="*"/>
-<xsl:preserve-space elements="cmdsynopsis arg" />
+<xsl:preserve-space elements="cmdsynopsis arg group" />
<xsl:template match="/">
<!-- Pull out cmdsynopsis to show the command usage line. -->%% Generated, do not edit!
@@ -68,6 +68,14 @@ usage() -> %QUOTE%Usage:
<!-- Don't show anything else in command usage -->
<xsl:template match="text()" mode="command-usage"/>
+<xsl:template match="group[@choice='opt']">
+ <xsl:text>[</xsl:text>
+ <xsl:for-each select="arg">
+ <xsl:apply-templates/>
+ <xsl:if test="not(position() = last())"><xsl:text>|</xsl:text></xsl:if>
+ </xsl:for-each>
+ <xsl:text>]</xsl:text>
+</xsl:template>
<xsl:template match="arg[@choice='opt']">[<xsl:apply-templates/>]</xsl:template>
<xsl:template match="replaceable">&lt;<xsl:value-of select="."/>&gt;</xsl:template>