Revision e00291c0 qemu-img.c
b/qemu-img.c | ||
---|---|---|
58 | 58 |
/* Please keep in synch with qemu-img.texi */ |
59 | 59 |
static void help(void) |
60 | 60 |
{ |
61 |
printf("qemu-img version " QEMU_VERSION ", Copyright (c) 2004-2008 Fabrice Bellard\n" |
|
61 |
const char *help_msg = |
|
62 |
"qemu-img version " QEMU_VERSION ", Copyright (c) 2004-2008 Fabrice Bellard\n" |
|
62 | 63 |
"usage: qemu-img command [command options]\n" |
63 | 64 |
"QEMU disk image utility\n" |
64 | 65 |
"\n" |
... | ... | |
91 | 92 |
" '-a' applies a snapshot (revert disk to saved state)\n" |
92 | 93 |
" '-c' creates a snapshot\n" |
93 | 94 |
" '-d' deletes a snapshot\n" |
94 |
" '-l' lists all snapshots in the given image\n" |
|
95 |
); |
|
96 |
printf("\nSupported formats:");
|
|
95 |
" '-l' lists all snapshots in the given image\n";
|
|
96 |
|
|
97 |
printf("%s\nSupported formats:", help_msg);
|
|
97 | 98 |
bdrv_iterate_format(format_print, NULL); |
98 | 99 |
printf("\n"); |
99 | 100 |
exit(1); |
Also available in: Unified diff