Use popt library to parse program arguments