Are you typing the command interactively (i.e., in the command window), or are you executing it from a do-file?
This isn't due to -anova-, but rather is a function of how Stata is parsing the command line.