the error is thrown when the --test flag is the last one, so you find no other one starting with --. No warning at all.