Use a friendly error message when option is same value

Fixes #1254, previously #1339