[getOpt] library finish