Inaccurate error message. Input after '-w <weight>' is not ignored. 