Example number 1 of Moshe showing leadership
(2) למענכם ON ACCOUNT OF YOU — You caused this for me (that God was wroth with me); similarly, it states, (Psalms 106:32) “And they provoked Him at the waters of Meribah, and He did evil to Moses on their account".
Rashi is saying that Moshe can not go into Israel because of something that he did for Bnei Yisroel. He does not say that it's all your fault, I can't go into Israel because of you. Rather then putting them down all he said was that I can't go because of something that I did for you. Moshe is showing leadership because he is trying to not put them down even if it was Bnei Yisroels fault. As a leader it is very hard to keep your opinion out of the situation, but Moshe did not make it personal and he stated the facts and the facts only. Those are qualities of a leader.
Example number 2 of Moshe showing leadership
(28) Give Joshua his instructions, and imbue him with strength and courage, for he shall go across at the head of this people, and he shall allot to them the land that you may only see.”

