SHL-98: check option availability in case insensitive way

Add unit test, format code