enable short option at second argument of on()
refactoring for s:on()

return when error occurs
parse short option

replace short option with long option
fix condition
add tests for short options