Name
cmdsynopsis — A syntax summary for a software command
Synopsis
cmdsynopsis ::=
(info? db.titleforbidden.info,
(arg | command |
group | sbr)+,
synopfragment*)
Attribute synopsis
Common attributes and common linking attributes.
Additional attributes:
cmdlengthlabelsepchar
Description
A cmdsynopsis summarizes the options and
parameters of a command started from a text prompt. This is usually a
program started from the DOS, Windows, or
UNIX shell prompt.
A cmdsynopsis operates under the following
general model: commands have arguments that may be grouped; arguments
and groups may be required or optional and may be repeated.
Processing expectations
The processing expectations of cmdsynopsis
are fairly complex:
Arguments are generally identified with a prefix character.
In the UNIX world, this character is almost universally the dash or hyphen, although plus signs and double dashes have become more common in recent years.
In the DOS/Windows world, forward slashes are somewhat more common than dashes.
The DocBook processing expectations on this point are intentionally vague. In some environments it may be most convenient to generate these characters automatically; in other environments it may be more convenient to insert them literally in the content.
Whichever processing model you choose, note that this will be an interchange issue if you share documents with other users (see Appendix D).
Brackets are used to distinguish between optional, required, or plain arguments. Usually square brackets are ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access