diff options
Diffstat (limited to 'docs/usage.xsl')
| -rw-r--r-- | docs/usage.xsl | 10 |
1 files changed, 9 insertions, 1 deletions
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"><<xsl:value-of select="."/>></xsl:template> |
