A yob caught with a blade outside his home claimed he needed it for his work.
George Noon, 33, was arrested by cops with a lockback knife in his jacket pocket outside the property in Barrhead.
Paisley Sheriff Court heard claims Noon had only committed a “technical breach” of the law after he was found in possession of the weapon.
Noon, who works clearing railways, claimed he needed the knife for “opening packages”.
Procurator fiscal depute Ed Sheeran said police were carrying out inquiries about his motor when they stopped him in Arthurlie Street on October 30, last year.
He said: “Officers approached the vehicle displaying their warrant cards and the accused was removed from the vehicle.
“He was being placed in handcuffs for the officer’s safety and informed he was being placed in the back of the vehicle when the accused disclosed he had a knife in his jacket pocket.
“Police witnesses recovered a black handled lockback knife with a 9cm blade from his jacket
Noon was taken to Govan police station where he was cautioned and charged.
He appeared in the dock where he pleaded guilty to possession of a knife in a public place without reasonable excuse or lawful authority.
Defence agent Terry Gallanagh told the court his client was admitting a “technical breach” of the legislation.
He said: “He works full time and uses the knife in the course of his employment.
“He wasn’t going to or returning from work at the time it was in his possession.
“The reason he is appearing on indictment is that he has an analogous conviction from 10 years ago.
“He works fixing railways surrounding curtilage and the knife was used for opening packaging.”
Mr Gallanagh added Noon’s employers had written to the court confirming this is part of his job. He added his client “fully understands the effects that carrying knives in public can have”, and wanted to apologise to the court.
Noon offered to pay a fine, but this was rejected by the court.
Sheriff Mark Thorley told him he was deferring sentence to call for background reports in preparation for sentencing.
He said: “I am calling for a Criminal Justice Social Work report.
“The reason for this is because of your record.”
Noon will discover his fate on August 6.