qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v2 09/29] qapi-gen: Convert from getopt to argpa


From: Eric Blake
Subject: Re: [Qemu-devel] [PATCH v2 09/29] qapi-gen: Convert from getopt to argparse
Date: Mon, 12 Feb 2018 13:44:15 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0

On 02/11/2018 03:35 AM, Markus Armbruster wrote:
argparse is nicer to use than getopt, and gives us --help almost for
free.

Signed-off-by: Markus Armbruster <address@hidden>
---
  scripts/qapi-gen.py    | 48 ++++++++++++++++++++++++++++++------------------
  scripts/qapi/common.py | 43 -------------------------------------------
  2 files changed, 30 insertions(+), 61 deletions(-)


More functionality in fewer lines of code - always a win ;)

Reviewed-by: Eric Blake <address@hidden>

--
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]