Hotfix/sangshuduo/td 4902 for mastere (#6623)
* [TD-4902] FIX with 1 char * Fix prompt of -m @ taosdemo Co-authored-by: SunShine Chan <chenweican@gmail.com> Co-authored-by: Shuduo Sang <sdsang@taosdata.com>
This commit is contained in:
parent
a2c1754168
commit
55d3e7a2ea
|
@ -982,9 +982,9 @@ static void parse_args(int argc, char *argv[], SArguments *arguments) {
|
|||
arguments->len_of_binary = atoi(argv[++i]);
|
||||
} else if (strcmp(argv[i], "-m") == 0) {
|
||||
if ((argc == i+1) ||
|
||||
(!isStringNumber(argv[i+1]))) {
|
||||
(isStringNumber(argv[i+1]))) {
|
||||
printHelp();
|
||||
errorPrint("%s", "\n\t-m need a number following!\n");
|
||||
errorPrint("%s", "\n\t-m need a letter-initial string following!\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
arguments->tb_prefix = argv[++i];
|
||||
|
|
Loading…
Reference in New Issue