Skip to content

Commit

Permalink
fix: help information and -p can crash
Browse files Browse the repository at this point in the history
  • Loading branch information
DuanKuanJun committed Sep 13, 2023
1 parent 330f11a commit 7360894
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/taosdump.c
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ static struct argp_option options[] = {
"Server host from which to dump data. Default is localhost.", 0},
{"user", 'u', "USER", 0,
"User name used to connect to server. Default is root.", 0},
{"password", 'p', 0, 0,
{"password", 'p', "PASS", 0,
"User password to connect to server. Default is taosdata.", 0},
{"port", 'P', "PORT", 0, "Port to connect", 0},
// input/output file
Expand Down Expand Up @@ -494,7 +494,7 @@ static struct argp_option options[] = {
#endif
{"debug", 'g', 0, 0, "Print debug info.", 15},
{"dot-replace", 'Q', 0, 0, "Repalce dot character with underline character in the table name.", 10},
{"rename-dbname", 'W', "rename", 0, "rename database name with new name. format demo: db1=newDB1|db2=newDB2", 10},
{"rename-dbname", 'W', "rename", 0, "rename database name with new name. format demo: -W \"db1=newDB1|db2=newDB2\" means rename db1 to newDB1 and rename db2 to newDB2", 10},
{0}
};

Expand Down

0 comments on commit 7360894

Please sign in to comment.