fix validation of cmd line option value