finishing add command line options to json interface