create_opts = qemu_opts_append(create_opts, proto_drv->create_opts);
}
- printf("Supported options:\n");
+ if (filename) {
+ printf("Supported options:\n");
+ } else {
+ printf("Supported %s options:\n", fmt);
+ }
qemu_opts_print_help(create_opts, false);
qemu_opts_free(create_opts);
+
+ if (!filename) {
+ printf("\n"
+ "The protocol level may support further options.\n"
+ "Specify the target filename to include those options.\n");
+ }
+
return 0;
}
qemu-img: Invalid option list: ,,
Testing: create -f qcow2 -o help
-Supported options:
+Supported qcow2 options:
backing_file=<str> - File name of a base image
backing_fmt=<str> - Image format of the base image
cluster_size=<size> - qcow2 cluster size
refcount_bits=<num> - Width of a reference count entry in bits
size=<size> - Virtual disk size
+The protocol level may support further options.
+Specify the target filename to include those options.
+
Testing: create -o help
-Supported options:
+Supported raw options:
size=<size> - Virtual disk size
+The protocol level may support further options.
+Specify the target filename to include those options.
+
Testing: create -f bochs -o help
qemu-img: Format driver 'bochs' does not support image creation
qemu-img: Invalid option list: ,,
Testing: convert -O qcow2 -o help
-Supported options:
+Supported qcow2 options:
backing_file=<str> - File name of a base image
backing_fmt=<str> - Image format of the base image
cluster_size=<size> - qcow2 cluster size
refcount_bits=<num> - Width of a reference count entry in bits
size=<size> - Virtual disk size
+The protocol level may support further options.
+Specify the target filename to include those options.
+
Testing: convert -o help
-Supported options:
+Supported raw options:
size=<size> - Virtual disk size
+The protocol level may support further options.
+Specify the target filename to include those options.
+
Testing: convert -O bochs -o help
qemu-img: Format driver 'bochs' does not support image creation