11 if (cmdLine.empty()) {
12 throw FatalError(
"Missing argument for option \"", option,
'\"');
14 std::string argument = std::move(cmdLine.front());
15 cmdLine = cmdLine.subspan(1);
21 return cmdLine.empty() ? std::string{} : cmdLine.front();
static std::string getArgument(const std::string &option, std::span< std::string > &cmdLine)
static std::string peekArgument(const std::span< std::string > &cmdLine)
This file implemented 3 utility functions: