That's what Peter did, he took his sword out to protect Jesus.
Because Peter, in case you weren't aware, was a bit of a coward.
Cowards can still do the right things for the wrong reasons.
Jesus practiced what he preached.
What did He preach?
Not pacifism.
Not "give up your weapons."
There were opportunities in his ministry for Jesus to carry a sword for his defence, but he never did.
So what?
When it came time to use a sword in his defence, he said, put the sword away.
And what was the context of that command?
He was about to go to the cross. Resisting would only delay that.
If it were the case that He doesn't want people to be armed, then He wouldn't have told them to carry a sword to begin with.
Jesus showed us the greater good path, whilst on the cross, he prayed Father forgive them.
Ignoring the context again.
What was He asking the Father to forgive them of?
Use scripture.
The disciples witnessed the ordeal Jesus went through. They had a first hand understanding of what swords and forgiveness meant to Jesus.
More ignoring of the context.
Would they ever carry a sword again, and use it in their defence?
I doubt they ever went anywhere unarmed. Highway thieves were very common in those times.
Swords, like divorce are allowed, but they are not the greatest good option.
Of course if we lived in a perfect world, neither divorce nor swords would be needed.
But we don't, so they are.
God tells us that the only reason people should be getting a divorce is because of sexual immorality.
And because men are evil, and some even seek to take the lives of the innocent, God recognizes that the innocent need to defend themselves.
If they had no swords, Jesus could not tell them not to use a sword.
Of course He could tell them to not use swords without them first owning a sword!
Using your reasoning, God couldn't tell anyone to not commit murder without them first killing someone, or to not commit adultery without them first destroying their family!
What backwards thinking!
God does not tell people to do things that are evil.
If they had no swords, the disciples would have said to themselves, if only we had swords, we could have defended our Lord.
Still ignoring the context.
They were ignorant of the fact that He INTENDED to be killed.
Jesus showed his disciples how not to use a sword,
No, He was making sure they didn't interfere with His plan of going to the cross.
He wasn't condemning the use of a sword, else He would have never told them to go out and buy one in the first place!
it was now up to them as to what they should do in the future.
Wrong.
Jesus did things for a purpose,
Yes, He did.
It wasn't for the purpose you seem to think.
and often they are beyond our understanding.
As if that completely justifies your position.
Newsflash, it doesn't!
Your two cents are worth nothing.
Jesus knew how the story was going to end.
Rather, He was going to bring about the ending He wanted.
The question you should ask is, why did Jesus say bring two swords, when he knew he was going to tell them not to use a sword.
Hmm, I wonder if Luke 22:37 has anything to do with this...
Along with literally everything else he had been teaching them for the past three years...