Within hours of Lance Armstrong’s filing of a lawsuit Monday that sought to block the United States Anti-Doping Agency from punishing him for doping violations it has charged him with, a federal judge in Austin, Tex., struck down the suit, dealing Armstrong a swift and smarting blow in his hometown.

Sam Sparks, of United States District Court, chastised Armstrong’s lawyers for submitting a lengthy complaint filled with allegations that “were totally irrelevant to Armstrong’s claims.”

Sparks said in his order that the court was left to presume that the allegations “were included solely to increase media coverage of this case, and to incite public opinion against” the antidoping agency and Travis Tygart, the agency’s chief executive, who is also named as a defendant.

“This court is not inclined to indulge Armstrong’s desire for publicity, self-aggrandizement or vilification of Defendants, by sifting through 80 mostly unnecessary pages in search of the few kernels of factual material relevant to his claims,” Sparks said.