]> git.proxmox.com Git - qemu.git/blobdiff - qemu-img.c
Support 'help' as a synonym for '?' in command line options
[qemu.git] / qemu-img.c
index 80cfb9b167a428ea3dab7c9c9c768c2e2f33c867..b866f8081e27cd8cdf69694d1707d5ab4376f77e 100644 (file)
@@ -350,7 +350,7 @@ static int img_create(int argc, char **argv)
         img_size = (uint64_t)sval;
     }
 
-    if (options && !strcmp(options, "?")) {
+    if (options && is_help_option(options)) {
         ret = print_block_option_help(filename, fmt);
         goto out;
     }
@@ -744,7 +744,7 @@ static int img_convert(int argc, char **argv)
     /* Initialize before goto out */
     qemu_progress_init(progress, 2.0);
 
-    if (options && !strcmp(options, "?")) {
+    if (options && is_help_option(options)) {
         ret = print_block_option_help(out_filename, out_fmt);
         goto out;
     }