More specifically, I think the commandline was designed to work like this:

lame (your settings) 01.wav(space)01.mp3(space)(space)02.wav(space)02.mp3, etc. The idea is by using a single space, you specifiy that the first file is encoded and saved with the filename immediately after it, and then use two spaces to tell LAME to start a new file.