parse input option

from nginx.