Command parsing in Python?
I am currently attempting an Interactive Fiction game in Python (when I am finished I plan to write an instructable detailing how I did it). The only problem I have run into is the parser. I want to be able to specify a syntax for a command, and have the parser be able to recognize when the command is being input regardless of the arguments passed to it, as well as be able to extract the arguments from the inputted command. This would not be so much of a problem if there were not both one-argument and two-argument commands, and the fact that "throw x to y" is a different command than, say, "throw x at y".
Any help would be greatly appreciated.