A battery-powered tool includes a barrel and a handle connected to the
barrel. A battery pack has a body and a pivotal tube extending from a top
of the battery pack. The pivotal tube is inserted in a space defined
axially in the handle so as to provide electric power to the tool. The
pivotal tube can be pivoted between a first position and a second
position relative to the handle. A limitation portion is located between
the pivotal tube and an inner periphery of the space so as to limit a
movement of the pivotal tube in the handle along an axial direction. An
angle restriction portion is located between the pivotal tube and an
inner periphery of the space so as to restrict the body to be rotated an
angle less than 360 degrees between the first and second positions.