feat(dev): 支持 compiler --help 输出帮助信息
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
// 轻量日志接口。
|
||||
#pragma once
|
||||
|
||||
#include <iosfwd>
|
||||
#include <iostream>
|
||||
|
||||
#define LOG_INFO(msg) std::cerr << "[info] " << msg << "\n"
|
||||
#define LOG_ERROR(msg) std::cerr << "[error] " << msg << "\n"
|
||||
|
||||
// 打印命令行帮助信息(用于 `compiler --help`)。
|
||||
void PrintHelp(std::ostream& os);
|
||||
|
||||
Reference in New Issue
Block a user