|
From: | Markus Armbruster |
Subject: | Re: [Qemu-devel] [PATCH for-2.11 v2 1/5] qmp-shell: Use optparse module |
Date: | Tue, 15 Aug 2017 11:47:28 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) |
Eduardo Habkost <address@hidden> writes: > It makes command-line parsing and generation of help text much > simpler. There's really no excuse for parsing command line arguments by hand in Python. > The optparse module is deprecated since Python 2.7, but argparse > is not available in Python 2.6 (the minimum Python version > required for building QEMU). We have a few uses of argparse in the tree. Are they okay? We also use getopt in places. Perhaps we should pick one way to parse command lines and stick to it. > > Signed-off-by: Eduardo Habkost <address@hidden>
[Prev in Thread] | Current Thread | [Next in Thread] |