[lib] insert option -f,-i,-I and reading from /dev/stdin when it comes from here doc or string