That's weird... The -- means no more arguments, and the -w means enable warnings, but neither one should cause the program to work or stop working when removed...
Is it possible to run the script from a command shell without the arguments? That'll show what output there is...