mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
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:
@@ -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
|
||||
| [] -> ""
|
||||
| _ ->
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user