[cpp] Add parse args facility.