Merge pull request #27375 from taosdata/fix/TD-31584-3.0
Update shellEngine.c
This commit is contained in:
commit
c7a0564272
|
@ -585,7 +585,7 @@ void showHelp() {
|
||||||
balance vgroup ;\n\
|
balance vgroup ;\n\
|
||||||
balance vgroup leader on <vgroup_id> \n\
|
balance vgroup leader on <vgroup_id> \n\
|
||||||
compact database <db_name>; \n\
|
compact database <db_name>; \n\
|
||||||
crate view <view_name> as select ...\n\
|
create view <view_name> as select ...\n\
|
||||||
redistribute vgroup <vgroup_id> dnode <dnode_id> ;\n\
|
redistribute vgroup <vgroup_id> dnode <dnode_id> ;\n\
|
||||||
split vgroup <vgroup_id>;\n\
|
split vgroup <vgroup_id>;\n\
|
||||||
show compacts;\n\
|
show compacts;\n\
|
||||||
|
|
|
@ -164,9 +164,11 @@ int32_t shellRunCommand(char *command, bool recordHistory) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// add help or help;
|
// add help or help;
|
||||||
if (strncasecmp(command, "help;", 5) == 0) {
|
if (strncasecmp(command, "help", 4) == 0) {
|
||||||
showHelp();
|
if(command[4] == ';' || command[4] == ' ' || command[4] == 0) {
|
||||||
return 0;
|
showHelp();
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (recordHistory) shellRecordCommandToHistory(command);
|
if (recordHistory) shellRecordCommandToHistory(command);
|
||||||
|
|
Loading…
Reference in New Issue