argparse limitations

Ian Kelly ian.g.kelly at
Fri Jul 27 18:33:58 CEST 2012

On Fri, Jul 27, 2012 at 10:26 AM, Ian Kelly <ian.g.kelly at> wrote:
> It may be a bit awkward having to type "-i" once per file in the
> command line, but it does clear up the ambiguity.

Or you could bite the bullet and make the input files argument part of
the subparser, which you may find ugly, but I believe it's more
typical of how other tools with subcommands normally work.  If one of
your subcommands is a "help" command, do you really want that to
accept input files?

More information about the Python-list mailing list