You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
232 B

#include "utils/CLI.h"
#include <stdexcept>
CLIOptions ParseCLI(int argc, char** argv) {
if (argc <= 1) {
throw std::runtime_error("用法: compiler <input.sy>");
}
CLIOptions opt;
opt.input = argv[1];
return opt;
}