On 06/07/2010 05:01 PM, Anthony Liguori wrote:
On 06/07/2010 09:42 AM, Daniel P. Berrange wrote:
Add a new QMP command called 'query-argv' to information about the
command
line arguments supported by the QEMU binary. This is intended to
remove the
need for apps to parse '-help' output.

This is just as bad as parsing -help output IMHO.

The problem with something like this is that it discourages people from
using proper APIs to get at capabilities information.

What about a query-qemuopts instead? This has a well-defined schema and, while it won't let you get all arguments, going forward libvirt is going to try and use more qemuopts options and only the bare minimum legacy options (-incoming, -S).

Paolo

Reply via email to