java: Change synopsis in man page to show use of add_drive.

This commit is contained in:
Richard W.M. Jones
2013-01-07 23:41:46 +09:00
parent 7d89baa3e9
commit 05a67bcc25

View File

@@ -9,7 +9,13 @@ guestfs-java - How to use libguestfs from Java
import com.redhat.et.libguestfs.*;
GuestFS g = new GuestFS ();
g.add_drive_opts ("disk.img");
g.add_drive ("disk.img",
new HashMap<String,Object>() {
{
put ("readonly", Boolean.TRUE);
put ("format", "raw");
}
});
g.launch ();
=head1 DESCRIPTION