<chapter><title>CmdSynopsis Tests</title>

<bridgehead renderas=sect4>Very Simple CmdSynopsis</bridgehead>

<!-- cd directory -->
<cmdsynopsis>
  <command>cd</command>
  <arg choice=req><replaceable>directory</replaceable></arg>
</cmdsynopsis>

<bridgehead renderas=sect4>Simple CmdSynopsis</bridgehead>

<!-- cal [-jy] [month [year]] -->
<cmdsynopsis>
  <command>cal</command>
  <arg>-j</arg>
  <arg>-y</arg>
  <arg>month <arg>year</arg></arg>
</cmdsynopsis>

<bridgehead renderas=sect4>Another Simple CmdSynopsis</bridgehead>

<!-- chgrp [-R [ -H | -L | -P ]] [-f] group files -->
<cmdsynopsis>
  <command>chgrp</command>
  <arg>-R 
    <group>
      <arg>-H</arg>
      <arg>-L</arg>
      <arg>-P</arg>
    </group>
  </arg>
  <arg>-f</arg>
  <arg choice=plain><replaceable>group</replaceable></arg>
  <arg rep=repeat choice=plain><replaceable>file</replaceable></arg>
</cmdsynopsis>

<bridgehead renderas=sect4>Slightly Complex CmdSynopsis</bridgehead>

<!-- emacs [-t file] [-q] [-u user] [+number] [-f function ...] [-l file ...]
     file(s)
-->
<cmdsynopsis>
  <command>emacs</command>
  <arg>-t <replaceable>file</replaceable></arg>
  <arg>-q</arg>
  <arg>-u <replaceable>user</replaceable></arg>
  <arg>+<replaceable>number</replaceable></arg>
  <arg rep=repeat>-f <replaceable>function</replaceable></arg>
  <arg rep=repeat>-l <replaceable>file</replaceable></arg>
  <arg rep=repeat choice=plain><replaceable>file</replaceable></arg>
</cmdsynopsis>

<bridgehead renderas=sect4>Quite Complex CmdSynopsis</bridgehead>

<!-- huge GCC -->
<cmdsynopsis>
  <command>cccp</command>
  <arg>-$</arg>
  <arg>-C</arg>
  <arg rep=repeat>-D<replaceable>name</replaceable><arg>=<replaceable>definition</replaceable></arg></arg>
  <arg>-dD</arg>
  <arg>-dM</arg>
  <arg rep=repeat>-I <replaceable>directory</replaceable></arg>
  <arg>-H</arg>
  <arg>-I-</arg>
  <sbr>
  <arg rep=repeat>-imacros <replaceable>file</replaceable></arg>
  <arg rep=repeat>-include <replaceable>file</replaceable></arg>
  <group>
    <arg>-lang-c</arg>
    <arg>-lang-c++</arg>
    <arg>-lang-objc</arg>
  </group>
  <arg>-lint</arg>
  <sbr>
  <group>
    <arg>-M</arg>
    <arg>-MD</arg>
    <arg>-MM</arg>
    <arg>-MMD</arg>
  </group>
  <arg>-nostdinc</arg>
  <arg>-P</arg>
  <arg>-pedantic</arg>
  <arg>-pedantic-errors</arg>
  <arg>-trigraphs</arg>
  <arg>-U<replaceable>name</replaceable></arg>
  <sbr>
  <arg>-undef</arg>
  <arg>-Wtrigraphs</arg>
  <arg>-Wcomment</arg>
  <arg>-Wall</arg>
  <arg>-Wtraditional</arg>
  <group choice=req>
    <arg><replaceable>infile</replaceable></arg>
    <arg>-</arg>
  </group>
  <group choice=req>
    <arg><replaceable>outfile</replaceable></arg>
    <arg>-</arg>
  </group>
</cmdsynopsis>

</chapter>
