A tool device includes a handle and a driving shank having one end engaged into the handle and rotatably attached and coupled to the handle with a pivot shaft for allowing the driving shank to be rotated relative to the handle from a straight position in line with the handle to a position perpendicular to the handle to form a T-shaped driving tool device. The driving shank includes a number of depressions and the handle includes a spring biased detent member for engaging with either of the depressions of the driving shank and for anchoring the driving shank to the handle at selected angular positions. An actuating member is slidably received in the handle for actuating the detent member to engage with the driving shank.