A stapler and a method for holding a stapler open to inhibit the stapler from closing unexpectedly. The stapler includes a base, a magazine for receiving staples, and a cover assembly pivotable between an open position and a closed position with respect to the magazine. The stapler also includes a holding device coupled to the stapler that holds the cover assembly in the open position with respect to the magazine when the cover assembly is pivoted to the open position.