未验证 提交 fdce7d69 编写于 作者: sangshuduo's avatar sangshuduo 提交者: GitHub

[TD-10710]<fix>: taosdump exit if mix input. (#8327)

上级 d1a08474
...@@ -3005,8 +3005,14 @@ int main(int argc, char *argv[]) { ...@@ -3005,8 +3005,14 @@ int main(int argc, char *argv[]) {
printf("debug_print: %d\n", g_args.debug_print); printf("debug_print: %d\n", g_args.debug_print);
for (int32_t i = 0; i < g_args.arg_list_len; i++) { for (int32_t i = 0; i < g_args.arg_list_len; i++) {
if (g_args.databases || g_args.all_databases) {
errorPrint("%s is an invalid input if database(s) be already specified.\n",
g_args.arg_list[i]);
exit(EXIT_FAILURE);
} else {
printf("arg_list[%d]: %s\n", i, g_args.arg_list[i]); printf("arg_list[%d]: %s\n", i, g_args.arg_list[i]);
} }
}
printf("==============================\n"); printf("==============================\n");
if (checkParam(&g_args) < 0) { if (checkParam(&g_args) < 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册