But Germany essentially went to war in WWI to defend their allies, who had suffered what was quite arguably an act of war, namely a terrorist attack on their dignitaries on foreign soil, and which the nationalities involved were, according to them, not very cooperative. Now if you argue that is not the same, then the US invasion of Afghanistan is also a US war of aggression.
If you make a bad argument, admit it. Don't equate declaring a defence alliance with making threats of war, that is just stupid.
(To the downvoting idiot: There is another comment in my history you can find and downvote.)