diff --git a/application/main.cpp b/application/main.cpp index b3668f4c..6157d1f1 100644 --- a/application/main.cpp +++ b/application/main.cpp @@ -68,10 +68,10 @@ int main(int argc, char *argv[]) if (!args.isEmpty()) outDir = args.first(); - // 设置命令行工作目录 - LogBackend::instance(&a)->setCmdWorkDir(argv[argc - 2]); // 根据当前用户名获取正确家目录路径 Utils::homePath = Utils::getHomePath(argv[argc - 1]); + // 设置命令行工作目录 + LogBackend::instance(&a)->setCmdWorkDir(argv[argc - 2]); // 全部导出日志 LogBackend::instance(&a)->exportAllLogs(outDir);