try to pass json string --model-config {'campaign_id':100500,'run_id':1} to parser:
parser = ArgumentParser(description="")
parser.add_argument(
'--model-config',
type=str,
help='valid json string to set up model config'
)
But in this case I can't use spaces between property names and between key value pairs, otherwise I get an error:
unrecognized arguments: 'run_id':1}
Also I need to use double quotes (instead of single quotes) for property names. But when I use double quotes I also get an error.
Do we have more convenient way to process json string?