builder: Fix documentation of --list --list-format option (RHBZ#1140547).

Also give an error if users use the incorrect one:

$ virt-builder --list --format json
virt-builder: virt-builder --list: use '--list-format', not '--format'.
This commit is contained in:
Richard W.M. Jones
2014-09-11 10:11:09 +01:00
parent b047feafa9
commit de3614e0ff
2 changed files with 6 additions and 2 deletions

View File

@@ -243,6 +243,10 @@ read the man page virt-builder(1).
exit 1
)
| `List ->
if format <> None then (
eprintf (f_"%s: virt-builder --list: use '--list-format', not '--format'.\n") prog;
exit 1
);
(match args with
| [] -> ""
| _ ->

View File

@@ -307,13 +307,13 @@ alternate home directory:
=item B<--list>
=item B<--list --format> format
=item B<--list --list-format> format
=item B<--list --long>
List available templates.
It is possible to choose with I<--format> the output format for the list
It is possible to choose with I<--list-format> the output format for the list
templates:
=over 4