def sprout_main(*args): # host_arguments / image_arguments should each be lists of dictionaries which contain 'args' and 'kwargs' keys # (as imgargs is defined above) args = raspseed.parse( host_arguments = None, image_arguments = imgargs, *args) parsed = args.parse_args() raspseed.execute( parsed, post_setup = setup_sprout_host, post_image = customize_sprout_image)
def sprout_main(*args): # get an argparse object parser = raspseed.get_argparser(*args) # add the new args i want images = find_subparser('image', parser) images.add_argument( '--egress-interface', '-e', action='store', help='The outbound interface') images.add_argument( '--ingress-interface', '-e', action='store', help='The wifi interface to use for a Tor-only access point') parsed = parser.parse_args() raspseed.execute(parsed) if parsed.subparser == 'image':