Multiple invocation of the same subcommand in a single command line
问题 I'm trying to figure out how to use argparser to do the following: $ python test.py executeBuild --name foobar1 executeBuild --name foobar2 .... getBuild itself is a sub-command. My goal is to have the script have the capability to chain a series of sub-command ( executeBuild being one of them) and execute them in order. In the example above, it would execute a build, then setup the environment, then execute build again. How can I accomplish this with argparse? I've tried the following: main