Skip to content

Commit

Permalink
feat: taosdump support inspect avro file (#246)
Browse files Browse the repository at this point in the history
fix -s

[TD-14544]
  • Loading branch information
sangshuduo authored Jun 23, 2022
1 parent d3c29fb commit a875a05
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/taosdump.c
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,6 @@ static error_t parse_opt(int key, char *arg, struct argp_state *state) {
break;

case 's':
g_args.schemaonly = true;
break;

case 'L':
Expand Down Expand Up @@ -1026,6 +1025,10 @@ static void parse_args(
} else if (strcmp(argv[i], "-n") == 0) {
g_args.escape_char = false;
strcpy(argv[i], "");
} else if ((strcmp(argv[i], "-s") == 0)
|| (0 == strcmp(argv[i], "--schemaonly"))) {
g_args.schemaonly = true;
strcpy(argv[i], "");
} else if ((strcmp(argv[i], "-I") == 0)
|| (0 == strcmp(argv[i], "--inspect"))) {
g_args.inspect = true;
Expand Down

0 comments on commit a875a05

Please sign in to comment.