1 /* guestfish - the filesystem interactive shell
2 * Copyright (C) 2010 Red Hat Inc.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
28 /* The "help" command. This used to just list all commands, but
29 * that's not very useful. Instead display some useful
30 * context-sensitive help. This could be improved if we knew how many
31 * drives had been added already, and whether anything was mounted.
36 if (guestfs_is_config (g))
38 "Add disk images to examine using the -a or -d options, or the 'add' command.\n"
39 "Or create a new disk image using -N, or the 'alloc' or 'sparse' commands.\n"
40 "Once you have done this, use the 'run' command.\n"
44 "Find out what filesystems are available using 'list-filesystems' and then\n"
45 "mount them to examine or modify the contents using 'mount-ro' or\n"
52 "For more information about a command, use 'help cmd'.\n"
54 "To read the manual, type 'man'.\n"