[libvirt] [PATCH 10/11] virt-admin: convert command line parsing to use GOptionContext

Pavel Hrdina phrdina at redhat.com
Tue Oct 1 09:38:58 UTC 2019


On Fri, Sep 27, 2019 at 06:17:32PM +0100, Daniel P. Berrangé wrote:
> The GOptionContext API has the benefit over getopt_long that it will
> automatically handle --help output formatting.
> 
> Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
> ---
>  tools/virt-admin.c | 207 +++++++++++++++++++++------------------------
>  1 file changed, 98 insertions(+), 109 deletions(-)

Same comment about the -v -V --version, otherwise looks good.

Pavel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20191001/9cded35f/attachment-0001.sig>


More information about the libvir-list mailing list