The help document of qemu-img misses some options
Host environment
- Operating system: Ubuntu 20.04
- OS/kernel version: Linux tca 5.15.0-46-generic #49~20.04.1-Ubuntu SMP Thu Aug 4 19:15:44 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
- Architecture: x86
- QEMU flavor: qemu-img
- QEMU version: version 7.1.50 (v7.1.0-524-gdbc4f48b)
- QEMU command line:
./qemu-img --help
Description of problem
The "--help" option of qemu-img misses the option "skip-broken-bitmaps" for convert , "image-opts" for bench, "object" for dd and "force-share" for measure.
Steps to reproduce
- For the option "skip-broken-bitmaps", the following code appears during option parsing for convert and modifies the skip_broken in qemu-img.c:2377-2379.
case OPTION_SKIP_BROKEN:
skip_broken = true;
break;
- For the option "image-opts", the following code appears during option parsing for bench and modifies the image_opts in qemu-img.c:4511-4513.
case OPTION_IMAGE_OPTS:
image_opts = true;
break;
- For the option "object", the following code appears during option parsing for dd and calls the user_creatable_process_cmdline in qemu-img.c:4980-4982.
case OPTION_OBJECT:
user_creatable_process_cmdline(optarg);
break;
- For the option "force-share", the following code appears during option parsing for measure and modifies the force_share in qemu-img.c:5237-5239.
case 'U':
force_share = true;
break;
Additional information
But they do not appear in the document provided by "--help".
It may prevent users from using the relevant function.