summaryrefslogtreecommitdiffstats
path: root/fish
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2011-03-22 11:50:26 +0000
committerRichard W.M. Jones <rjones@redhat.com>2011-03-22 11:50:26 +0000
commit0daf7e81a659bcdc1ce327151cc1207b124a35a1 (patch)
treeb2da041d920f8995f5b5d8fa934128ab41a44c64 /fish
parentc8faa5d0b0a17689d27bd33bc787ba0fe9a3f076 (diff)
downloadlibguestfs-0daf7e81a659bcdc1ce327151cc1207b124a35a1.tar.gz
libguestfs-0daf7e81a659bcdc1ce327151cc1207b124a35a1.tar.xz
libguestfs-0daf7e81a659bcdc1ce327151cc1207b124a35a1.zip
fish: Add better quick help to --help output.
Notes
Notes: Labels: cleanup Depends: c8faa5d0b0a17689d27bd33bc787ba0fe9a3f076
Diffstat (limited to 'fish')
-rw-r--r--fish/fish.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/fish/fish.c b/fish/fish.c
index 6f2b535e..22f3359e 100644
--- a/fish/fish.c
+++ b/fish/fish.c
@@ -102,15 +102,6 @@ usage (int status)
"Copyright (C) 2009-2011 Red Hat Inc.\n"
"Usage:\n"
" %s [--options] cmd [: cmd : cmd ...]\n"
- " %s [--ro] -i -a disk-image\n"
- " %s [--ro] -i -d libvirt-domain\n"
- "or for interactive use:\n"
- " %s\n"
- "or from a shell script:\n"
- " %s <<EOF\n"
- " cmd\n"
- " ...\n"
- " EOF\n"
"Options:\n"
" -h|--cmd-help List available commands\n"
" -h|--cmd-help cmd Display detailed help on 'cmd'\n"
@@ -138,10 +129,19 @@ usage (int status)
" -V|--version Display version and exit\n"
" -w|--rw Mount read-write\n"
" -x Echo each command before executing it\n"
+ "\n"
+ "To examine a disk image, ISO, hard disk, filesystem etc:\n"
+ " %s [--ro|--rw] -i -a /path/to/disk.img\n"
+ "or\n"
+ " %s [--ro|--rw] -i -d name-of-libvirt-domain\n"
+ "\n"
+ "--ro recommended to avoid any writes to the disk image. If -i option fails\n"
+ "run again without -i and use 'run' + 'list-filesystems' + 'mount' cmds.\n"
+ "\n"
"For more information, see the manpage %s(1).\n"),
program_name, program_name, program_name,
program_name, program_name, program_name,
- program_name, program_name, program_name);
+ program_name);
}
exit (status);
}