support long options in rest api