break;
case 'N':
- if (STRCASEEQ (optarg, "list")) {
+ if (STRCASEEQ (optarg, "list") ||
+ STRCASEEQ (optarg, "help") ||
+ STRCASEEQ (optarg, "h") ||
+ STRCASEEQ (optarg, "?")) {
list_prepared_drives ();
exit (EXIT_SUCCESS);
}
To list what is available do:
- guestfish -N list | less
+ guestfish -N help | less
=head2 Remote control
Disable autosync. This is enabled by default. See the discussion
of autosync in the L<guestfs(3)> manpage.
-=item B<-N type> | B<--new type> | B<-N list>
+=item B<-N type> | B<--new type> | B<-N help>
Prepare a fresh disk image formatted as "type". This is an
alternative to the I<-a> option: whereas I<-a> adds an existing disk,
To list the available types and any extra parameters they take, run:
- guestfish -N list | less
+ guestfish -N help | less
Note that the prepared filesystem is not mounted. You would usually
have to use the C<mount /dev/sda1 /> command or add the
if (i == NR_PREPS) {
fprintf (stderr, _("\
guestfish: -N parameter '%s': no such prepared disk image known.\n\
-Use 'guestfish -N list' to list possible values for the -N parameter.\n"),
+Use 'guestfish -N help' to list possible values for the -N parameter.\n"),
type_string);
exit (EXIT_FAILURE);
}