diff options
author | Richard Jones <rjones@redhat.com> | 2010-04-06 23:54:08 +0100 |
---|---|---|
committer | Richard Jones <rjones@redhat.com> | 2010-04-08 22:21:44 +0100 |
commit | 3f785126cfa9cd4a100ca43cb1580e33c2860845 (patch) | |
tree | cb4ed7c722bbc16fa65aba99c4f4036dfa77c76f /fish/fish.h | |
parent | d5f98968a48cb8edd269e4865c4a851d187b98e3 (diff) | |
download | libguestfs-3f785126cfa9cd4a100ca43cb1580e33c2860845.tar.gz libguestfs-3f785126cfa9cd4a100ca43cb1580e33c2860845.tar.xz libguestfs-3f785126cfa9cd4a100ca43cb1580e33c2860845.zip |
fish: Print extended help when the user types an unknown command first.
$ guestfish /tmp/disk.img
/tmp/disk.img: unknown command
Did you mean to open a disk image? guestfish -a disk.img
For a list of commands: guestfish -h
For complete documentation: man guestfish
(cherry picked from commit 4c50f4c38d9a50fbf983c79dd208d1b1598fef8a)
Diffstat (limited to 'fish/fish.h')
-rw-r--r-- | fish/fish.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fish/fish.h b/fish/fish.h index c4b1a459..06b8de5a 100644 --- a/fish/fish.h +++ b/fish/fish.h @@ -51,6 +51,7 @@ extern guestfs_h *g; extern int quit; extern int verbose; +extern int command_num; extern int issue_command (const char *cmd, char *argv[], const char *pipe); extern void pod2text (const char *name, const char *shortdesc, const char *body); extern void list_builtin_commands (void); @@ -64,6 +65,7 @@ extern int is_true (const char *str); extern char **parse_string_list (const char *str); extern int xwrite (int fd, const void *buf, size_t len); extern char *resolve_win_path (const char *path); +extern void extended_help_message (void); /* in cmds.c (auto-generated) */ extern void list_commands (void); |