Well, you still have to click them all, but if you ctrl-click one, then all the rest, and then right-click on a square adjacent to the town, they will all come out in the same square (but if there are more units from the town than you have army size, I think there will be multiple groups on the same square).