You know, it should be easy if you're willing to drop the '--': simply take any command-line arguments containing '=' and turn them into keyword arguments, then pass them in. So for instance:
nova-manage network create public 10.0.0.0/8 1 15 flat_network_bridge=xenbr1 bridge_interface=eth1
You know, it should be easy if you're willing to drop the '--': simply take any command-line arguments containing '=' and turn them into keyword arguments, then pass them in. So for instance:
nova-manage network create public 10.0.0.0/8 1 15 flat_network_ bridge= xenbr1 bridge_ interface= eth1
Then you'd have something like:
def parse_args(argv):
args = {}