The Pittsburgh Pirates have named Jeff Locke their No. 5 starter.

Locke beat out Kyle McPherson, who has been optioned to Triple-A Indianapolis.

"We had extremely challenging decisions," general manager Neal Huntington said. "We didn't have clear separation on a number of fronts, but we still made decisions we feel good about."