fixed short opts parsing