group
group — A group of elements in a CmdSynopsis
Synopsis
Content Model
group ::=
((arg|group|option|synopfragmentref|replaceable|sbr)+)
Attributes
Name | Type | Default | ||||
choice |
| "opt" | ||||
rep |
| "norepeat" |
Description
A Group
surrounds several related items. Usually, they are grouped because they are mutually exclusive. The user is expected to select one of the items.
Processing expectations
Formatted inline. The additional processing expectations of a Group
are significant. For a complete discussion, see CmdSynopsis
.
-
Multiple arguments within a group are considered exclusive and are separated by vertical bars.
-
Brackets are used to distinguish between optional, required, or plain arguments. Usually square brackets are placed around optional arguments,
[-f | -g]
, and curly brackets are placed around required arguments,{-f | -g}
. Plain arguments are required, but are not decorated with brackets. -
Repeatable arguments are followed by an ellipsis.
Future Changes
The OptMult
and ReqMult
values for the Choice
attribute will be removed in DocBook V4.0. Use the Rep
attribute instead to indicate that the choice is repeatable.
Parents
These elements contain group: arg
, cmdsynopsis
, group
, synopfragment
.
Children
The following elements occur in group: arg
, group
, option
, replaceable
, sbr
, synopfragmentref
.
Attributes
choice
Choice
indicates whether theArg
is required (Req
orPlain
) or optional (Opt
). Arguments identified asPlain
are required, but are shown without additional decoration. TheOptMult
andReqMult
choices will be removed in DocBook V4.0; use theRep
attribute instead.rep
A
Rep
value ofRepeat
indicates that theGroup
is reapeatable. This is frequently rendered with an ellipsis.
See Also
arg
, cmdsynopsis
, refsynopsisdiv
, sbr
, synopfragment
, synopfragmentref
.
Examples
For examples, see cmdsynopsis
, synopfragment
.