add line cap option to doc