On 10/12/2012 11:04 AM, Petr Viktorin wrote:
> I read through https://fedorahosted.org/freeipa/ticket/3060 and
> noticed that the requirements are similar to what an existing library
> The optparse module we currently use for CLI option parsing is
> deprecated. The replacement is called argparse, which is part of
> the Python 2.7 standard library. Out of the box, it provides several
> features we either lack or had to handle manually, namely:
> * supporting sub-commands 
> * producing more informative usage messages 
> * handling both optional and positional arguments 
> * as well as including a number of other more minor improvements on
> the optparse API. 
> The package has also been backported to Python 2.6, the only catch
> there is that it's not in the standard library.
> Not much of our code calls optparse directly, so switching shouldn't
> be a major effort (within the scope of reorganizing the help system).
> In exchange we get better CLI help messages, forward compatibility,
> and reuse of proven code instead of our own solutions.
>  http://docs.python.org/library/optparse.html
>  http://code.google.com/p/argparse/
>  yum info python-argparse (EPEL-6)
The ticket is IMO nice to have. Does it provide any value for other main
If so can you reference other tickets that it would help with.
I am not sure I want the switch for just help.
Sr. Engineering Manager for IdM portfolio
Red Hat Inc.
Looking to carve out IT costs?
Freeipa-devel mailing list