A Portland man is in jail on charges of robbery after he allegedly stabbed another man in the chest whose wallet he also tried to take.

Brandon McCue, 27, was walking with Frank Ruggiero, 41, on State Street near Sherman Street at 2:45 a.m. Wednesday when McCue asked for $5 to buy cigarettes, police said. When Ruggiero pulled out his wallet, McCue grabbed it, police said.

The two, who know each other and are described by police as transient, fought over the wallet and McCue eventually pulled out a folding knife and started swinging it, hitting Ruggiero in the chest, police said.  Ruggiero was taken to Maine Medical Center and was treated for a puncture wound. The blade hit a rib and so did not damage any of his organs, police said.

The wallet contained about $20.

McCue is being held at Cumberland County Jail on $50,000 bail.