Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
60 lines (52 sloc) 1.84 KB
/* guestfish - the filesystem interactive shell
* Copyright (C) 2010 Red Hat Inc.
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#include <config.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <libintl.h>
#include "fish.h"
/* The "help" command. This used to just list all commands, but
* that's not very useful. Instead display some useful
* context-sensitive help. This could be improved if we knew how many
* drives had been added already, and whether anything was mounted.
display_help (void)
if (guestfs_is_config (g))
printf (_(
"Add disk images to examine using the -a or -d options, or the 'add' command.\n"
"Or create a new disk image using -N, or the 'alloc' or 'sparse' commands.\n"
"Once you have done this, use the 'run' command.\n"
printf (_(
"Find out what filesystems are available using 'list-filesystems' and then\n"
"mount them to examine or modify the contents using 'mount-ro' or\n"
printf ("\n");
printf (_(
"For more information about a command, use 'help cmd'.\n"
"To read the manual, type 'man'.\n"
printf ("\n");
Jump to Line
Something went wrong with that request. Please try again.