hmmm, well not sure what's goin on. I coded up a little test app and tried it and it worked like a champ(but i also don't know what alls in your code, my sample is REALLY simple), here are some screen shots.
Here's a shot of my ide.
And here's a shot of my command line params.