Skip to content

Commit

Permalink
lxc-doc-synopsis-args
Browse files Browse the repository at this point in the history
I was getting raw nroff ".SH DESCRIPTION" in my man pages. This fixes
the synopsis cmd args so that doesn't happen. Added replaceable to a few
arguments.

Signed-off-by: Dwight Engen <dwight.engen@oracle.com>
  • Loading branch information
Dwight Engen authored and stgraber committed Sep 10, 2012
1 parent b937409 commit 8b92fb7
Show file tree
Hide file tree
Showing 18 changed files with 79 additions and 66 deletions.
14 changes: 9 additions & 5 deletions doc/lxc-attach.sgml.in
Expand Up @@ -47,11 +47,15 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
</refnamediv>

<refsynopsisdiv>
<cmdsynopsis><command>lxc-attach <replaceable>-n
name</replaceable> <optional>-a
arch</optional> <optional>-e</optional> <optional>-s
namespaces</optional> <optional>-R</optional>
<optional>-- command</optional></command></cmdsynopsis>
<cmdsynopsis>
<command>lxc-attach</command>
<arg choice="req">-n <replaceable>name</replaceable></arg>
<arg choice="opt">-a <replaceable>arch</replaceable></arg>
<arg choice="opt">-e</arg>
<arg choice="opt">-s <replaceable>namespaces</replaceable></arg>
<arg choice="opt">-R</arg>
<arg choice="opt">-- <replaceable>command</replaceable></arg>
</cmdsynopsis>
</refsynopsisdiv>

<refsect1>
Expand Down
7 changes: 4 additions & 3 deletions doc/lxc-cgroup.sgml.in
Expand Up @@ -48,9 +48,10 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

<refsynopsisdiv>
<cmdsynopsis>
<command>lxc-cgroup -n <replaceable>name</replaceable>
<replaceable>state-object</replaceable> <optional>value</optional>
</command>
<command>lxc-cgroup</command>
<arg choice="req">-n <replaceable>name</replaceable></arg>
<arg choice="req"><replaceable>state-object</replaceable></arg>
<arg choice="opt">value</arg>
</cmdsynopsis>
</refsynopsisdiv>

Expand Down
8 changes: 4 additions & 4 deletions doc/lxc-checkpoint.sgml.in
Expand Up @@ -49,10 +49,10 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

<refsynopsisdiv>
<cmdsynopsis>
<command>lxc-checkpoint
--statefile=<replaceable>FILE</replaceable>
--statefd=<replaceable>FD</replaceable>
--name=<replaceable>NAME</replaceable> </command>
<command>lxc-checkpoint</command>
<arg choice="req">--statefile=<replaceable>FILE</replaceable></arg>
<arg choice="req">--statefd=<replaceable>FD</replaceable></arg>
<arg choice="req">--name=<replaceable>NAME</replaceable></arg>
<arg><option>-k</option>|<option>-p</option></arg>
</cmdsynopsis>
</refsynopsisdiv>
Expand Down
8 changes: 4 additions & 4 deletions doc/lxc-console.sgml.in
Expand Up @@ -48,9 +48,9 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

<refsynopsisdiv>
<cmdsynopsis>
<command>lxc-console <replaceable>-n name</replaceable>
<optional>-t ttynum</optional>
</command>
<command>lxc-console</command>
<arg choice="req">-n <replaceable>name</replaceable></arg>
<arg choice="opt">-t <replaceable>ttynum</replaceable></arg>
</cmdsynopsis>
</refsynopsisdiv>

Expand Down Expand Up @@ -84,7 +84,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

<varlistentry>
<term>
<option>-t <optional>ttynum</optional></option>
<option>-t <optional><replaceable>ttynum</replaceable></optional></option>
</term>
<listitem>
<para>
Expand Down
12 changes: 6 additions & 6 deletions doc/lxc-create.sgml.in
Expand Up @@ -48,12 +48,12 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

<refsynopsisdiv>
<cmdsynopsis>
<command>lxc-create <replaceable>-n name</replaceable>
<optional>-f config_file</optional>
<optional>-t template</optional>
<optional>-B backingstore</optional>
<optional>-- template-options</optional>
</command>
<command>lxc-create</command>
<arg choice="req">-n <replaceable>name</replaceable></arg>
<arg choice="opt">-f <replaceable>config_file</replaceable></arg>
<arg choice="opt">-t <replaceable>template</replaceable></arg>
<arg choice="opt">-B <replaceable>backingstore</replaceable></arg>
<arg choice="opt">-- <replaceable>template-options</replaceable></arg>
</cmdsynopsis>
</refsynopsisdiv>

Expand Down
7 changes: 3 additions & 4 deletions doc/lxc-destroy.sgml.in
Expand Up @@ -48,10 +48,9 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

<refsynopsisdiv>
<cmdsynopsis>
<command>lxc-destroy <replaceable>-n
name</replaceable>
<optional>-f</optional>
</command>
<command>lxc-destroy</command>
<arg choice="req">-n <replaceable>name</replaceable></arg>
<arg choice="opt">-f</arg>
</cmdsynopsis>
</refsynopsisdiv>

Expand Down
10 changes: 5 additions & 5 deletions doc/lxc-execute.sgml.in
Expand Up @@ -48,11 +48,11 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

<refsynopsisdiv>
<cmdsynopsis>
<command>lxc-execute <replaceable>-n name</replaceable>
<optional>-f config_file</optional> <optional>-s KEY=VAL
</optional>
<optional>--</optional>
<replaceable>command</replaceable></command>
<command>lxc-execute</command>
<arg choice="req">-n <replaceable>name</replaceable></arg>
<arg choice="opt">-f <replaceable>config_file</replaceable></arg>
<arg choice="opt">-s KEY=VAL</arg>
<arg choice="opt">-- <replaceable>command</replaceable></arg>
</cmdsynopsis>
</refsynopsisdiv>

Expand Down
4 changes: 2 additions & 2 deletions doc/lxc-freeze.sgml.in
Expand Up @@ -48,8 +48,8 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

<refsynopsisdiv>
<cmdsynopsis>
<command>lxc-freeze <replaceable>-n name</replaceable>
</command>
<command>lxc-freeze</command>
<arg choice="req">-n <replaceable>name</replaceable></arg>
</cmdsynopsis>
</refsynopsisdiv>

Expand Down
4 changes: 3 additions & 1 deletion doc/lxc-kill.sgml.in
Expand Up @@ -49,7 +49,9 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

<refsynopsisdiv>
<cmdsynopsis>
<command>lxc-kill --name=<replaceable>NAME</replaceable> <replaceable>SIGNUM</replaceable></command>
<command>lxc-kill</command>
<arg choice="req">--name=<replaceable>NAME</replaceable></arg>
<arg choice="req"><replaceable>SIGNUM</replaceable></arg>
</cmdsynopsis>
</refsynopsisdiv>

Expand Down
5 changes: 3 additions & 2 deletions doc/lxc-ls.sgml.in
Expand Up @@ -48,8 +48,9 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

<refsynopsisdiv>
<cmdsynopsis>
<command>lxc-ls <optional>--active</optional> <optional>ls option</optional>
</command>
<command>lxc-ls</command>
<arg choice="opt">--active</arg>
<arg choice="opt">ls option</arg>
</cmdsynopsis>
</refsynopsisdiv>

Expand Down
4 changes: 2 additions & 2 deletions doc/lxc-monitor.sgml.in
Expand Up @@ -48,8 +48,8 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

<refsynopsisdiv>
<cmdsynopsis>
<command>lxc-monitor <replaceable>-n name</replaceable>
</command>
<command>lxc-monitor</command>
<arg choice="req">-n <replaceable>name</replaceable></arg>
</cmdsynopsis>
</refsynopsisdiv>

Expand Down
14 changes: 7 additions & 7 deletions doc/lxc-ps.sgml.in
Expand Up @@ -48,10 +48,10 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

<refsynopsisdiv>
<cmdsynopsis>
<command>lxc-ps <optional>--name name</optional>
<optional>--lxc</optional>
<optional>ps option</optional>
</command>
<command>lxc-ps</command>
<arg choice="opt">--name <replaceable>name</replaceable></arg>
<arg choice="opt">--lxc</arg>
<arg choice="opt">ps option</arg>
</cmdsynopsis>
</refsynopsisdiv>

Expand Down Expand Up @@ -81,11 +81,11 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

<varlistentry>
<term>
<option><replaceable>--name NAME</replaceable></option>
<option>--name <replaceable>name</replaceable></option>
</term>
<listitem>
<para>
specify the container <replaceable>NAME</replaceable>
specify the container <replaceable>name</replaceable>
to limit the output to the processes belonging
to this container name.
</para>
Expand All @@ -94,7 +94,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

<varlistentry>
<term>
<option><replaceable>--lxc</replaceable></option>
<option>--lxc</option>
</term>
<listitem>
<para>
Expand Down
11 changes: 6 additions & 5 deletions doc/lxc-restart.sgml.in
Expand Up @@ -49,11 +49,12 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

<refsynopsisdiv>
<cmdsynopsis>
<command>lxc-restart <optional>-f
config_file</optional><optional>-s KEY=VAL</optional>
--statefile=<replaceable>FILE</replaceable>
--statefd=<replaceable>FD</replaceable></command>
<arg choice="req"><option>--name=<replaceable>NAME</replaceable></option></arg>
<command>lxc-restart</command>
<arg choice="opt">-f <replaceable>config_file</replaceable></arg>
<arg choice="opt">-s KEY=VAL</arg>
<arg choice="req">--statefile=<replaceable>FILE</replaceable></arg>
<arg choice="req">--statefd=<replaceable>FD</replaceable></arg>
<arg choice="req">--name=<replaceable>NAME</replaceable></arg>
</cmdsynopsis>
</refsynopsisdiv>

Expand Down
7 changes: 4 additions & 3 deletions doc/lxc-shutdown.sgml.in
Expand Up @@ -45,9 +45,10 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

<refsynopsisdiv>
<cmdsynopsis>
<command>lxc-shutdown <replaceable>-n name</replaceable>
<optional>-w</optional> <optional>-r</optional>
</command>
<command>lxc-shutdown</command>
<arg choice="req">-n <replaceable>name</replaceable></arg>
<arg choice="opt">-w</arg>
<arg choice="opt">-r</arg>
</cmdsynopsis>
</refsynopsisdiv>

Expand Down
16 changes: 10 additions & 6 deletions doc/lxc-start.sgml.in
Expand Up @@ -47,12 +47,16 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
</refnamediv>

<refsynopsisdiv>
<cmdsynopsis><command>lxc-start <replaceable>-n
name</replaceable> <optional>-f
config_file</optional> <optional>-c
console_file</optional> <optional>-d</optional> <optional>-s
KEY=VAL</optional> <optional>-C</optional>
<optional>command</optional></command></cmdsynopsis>
<cmdsynopsis>
<command>lxc-start</command>
<arg choice="req">-n <replaceable>name</replaceable></arg>
<arg choice="opt">-f <replaceable>config_file</replaceable></arg>
<arg choice="opt">-c <replaceable>console_file</replaceable></arg>
<arg choice="opt">-d</arg>
<arg choice="opt">-s KEY=VAL</arg>
<arg choice="opt">-C</arg>
<arg choice="opt">command</arg>
</cmdsynopsis>
</refsynopsisdiv>

<refsect1>
Expand Down
4 changes: 2 additions & 2 deletions doc/lxc-stop.sgml.in
Expand Up @@ -48,8 +48,8 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

<refsynopsisdiv>
<cmdsynopsis>
<command>lxc-stop <replaceable>-n name</replaceable>
</command>
<command>lxc-stop</command>
<arg choice="req">-n <replaceable>name</replaceable></arg>
</cmdsynopsis>
</refsynopsisdiv>

Expand Down
4 changes: 2 additions & 2 deletions doc/lxc-unfreeze.sgml.in
Expand Up @@ -48,8 +48,8 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

<refsynopsisdiv>
<cmdsynopsis>
<command>lxc-unfreeze <replaceable>-n name</replaceable>
</command>
<command>lxc-unfreeze</command>
<arg choice="req">-n <replaceable>name</replaceable></arg>
</cmdsynopsis>
</refsynopsisdiv>

Expand Down
6 changes: 3 additions & 3 deletions doc/lxc-wait.sgml.in
Expand Up @@ -49,9 +49,9 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

<refsynopsisdiv>
<cmdsynopsis>
<command>lxc-wait <replaceable>-n name</replaceable>
<replaceable>-s states</replaceable>
</command>
<command>lxc-wait</command>
<arg choice="req">-n <replaceable>name</replaceable></arg>
<arg choice="req">-s <replaceable>states</replaceable></arg>
</cmdsynopsis>
</refsynopsisdiv>

Expand Down

0 comments on commit 8b92fb7

Please sign in to comment.