Chris Jerdonek added the comment:
> This is not satisfactory. I would prefer:
> import argparse
> argparser = argparse.ArgumentParser()
> subparsers = argparser.add_subparsers('cmd1') % name here
Have you tried passing by keyword?
subparsers = argparser.add_subparsers(dest='cmd1')
It seems to
New submission from Thibault Kruse:
I realize there have been several suggestions around argparse subcommands. Mine
is related to this isse:
http://bugs.python.org/issue9253
In short, I suggest that the add_subparsers() function take an argument like
nargs that determines how many times user m