charon-cmd: build long_opts only once when reading arguments in charon-cmd