Skip to content

Commit

Permalink
fix: cli export -t&-d option cannot use together
Browse files Browse the repository at this point in the history
   cli export -t&-d option cannot use together, except for '-t app'

Log: cli export -t&-d option cannot use together
Bug: https://pms.uniontech.com/bug-view-226569.html
  • Loading branch information
starhcq authored and rb-union committed Nov 2, 2023
1 parent fe2ad64 commit 434433a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions application/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,11 @@ int main(int argc, char *argv[])
}
}

if (!type.isEmpty() && type != "app" && !appName.isEmpty()) {
qCWarning(logAppMain) << QString("Option -d -t both exist, -t can only be set to 'app' type.");
return -1;
}

if (!type.isEmpty()) {
// 按类型导出日志
if (period.isEmpty() &&
Expand Down

0 comments on commit 434433a

Please sign in to comment.