Eduardo Habkost <ehabk...@redhat.com> 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 <ehabk...@redhat.com>