Police were called to Dewsbury this morning after reports of a man brandishing weapons.
Officers, including armed police, arrived at Halifax Road at 7.20am this morning.
It is alleged the man was hitting cars with a piece of pipe and had a suspected imitation firearm.
He has been arrested and the firearm has been recovered.
No one was injured during the incident.