Add raising error for the wrong --do options + test