补充。
This commit is contained in:
@@ -3,3 +3,4 @@ cmake_minimum_required(VERSION 3.16)
|
|||||||
project(use_tdl LANGUAGES CXX)
|
project(use_tdl LANGUAGES CXX)
|
||||||
|
|
||||||
add_executable(use_tdl main.cpp)
|
add_executable(use_tdl main.cpp)
|
||||||
|
target_link_libraries(use_tdl PRIVATE zoost)
|
||||||
@@ -9,7 +9,9 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
#include <thread>
|
#include <thread>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
#include <zoost/zoost.h>
|
||||||
|
|
||||||
|
using namespace zoost;
|
||||||
namespace fs = std::filesystem;
|
namespace fs = std::filesystem;
|
||||||
|
|
||||||
struct Args {
|
struct Args {
|
||||||
@@ -98,6 +100,8 @@ int download_with_retry(const Args& args)
|
|||||||
|
|
||||||
int main(int argc, char** argv)
|
int main(int argc, char** argv)
|
||||||
{
|
{
|
||||||
|
Common::SetOutputU8();
|
||||||
|
|
||||||
Args args;
|
Args args;
|
||||||
|
|
||||||
CLI::App app{"简单的下载器包装工具"};
|
CLI::App app{"简单的下载器包装工具"};
|
||||||
|
|||||||
Reference in New Issue
Block a user