改用Poco请求。
This commit is contained in:
10
main.cpp
10
main.cpp
@@ -1,4 +1,4 @@
|
||||
#include <CLI/CLI.hpp>
|
||||
#include <CLI11.hpp>
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -14,8 +14,16 @@
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
auto curCP = GetConsoleOutputCP();
|
||||
std::shared_ptr<void> recovery(nullptr, [curCP](void*) { SetConsoleOutputCP(curCP); });
|
||||
SetConsoleOutputCP(CP_UTF8);
|
||||
#endif
|
||||
|
||||
if (argc < 2) {
|
||||
std::cout << "使用 --help 获取帮助信息。" << std::endl;
|
||||
return 0;
|
||||
}
|
||||
|
||||
CLI::App app{"百度翻译xlsx批量工具。"};
|
||||
argv = app.ensure_utf8(argv);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user