On Sep 30, 2009, at 12:58 PM, Robert Kern wrote:
I don't think argparse supports the "foo --help subcommand" OOB. I think it would be simple to modify argparse to make it do so. It does support general options followed by a subcommand with options, though.
Right. I've made it kind of work in Mailman 3, but it would be nice for argparse to support this out of the box. Note that I think you want two forms:
foo help subcommand foo subcommand --helpto basically print the same help text. This is the way bzr does it for example and it works great.
Other than that, I think argparse supports Guido's use case very nicely. -Barry
PGP.sig
Description: This is a digitally signed message part
_______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com