Argparse optional arguments with multilevel parser/subparser
问题 I have a set of parsers and subparsers to build a production or development system. If the user picks production, he can add options and all is well. If he pics development, he can enter an architecture and then enter build options. This is where it gets sticky. I want him to be able to select build option 'comms' 'server' or 'all', but if he picks server, he has more choices. My implementation is below. I tried combinations of parsers and subpasers (it seems that arguments can only be added