Unknown CLI params get ignored

This fixes an infinite loop if there are unknown CLI params.