I recently watched the very epic ending of the Shrek 2, and when the cat draws his rapier, he shouts "On guard!" to the castle guardians.
I perfectly understand the meaning from the context, but was unable to find the exact usage situtaion in any of the dictionaries.
Is it the similar to "Defend yourself!", when a person wants an attack not to be by surprise, but a fair battle and gives their opponent a chance to ackwnowledge the attack?