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 leader on <vgroup_id> \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\
|
||||
split vgroup <vgroup_id>;\n\
|
||||
show compacts;\n\
|
||||
|
|
|
@ -164,11 +164,13 @@ int32_t shellRunCommand(char *command, bool recordHistory) {
|
|||
}
|
||||
|
||||
// add help or help;
|
||||
if (strncasecmp(command, "help;", 5) == 0) {
|
||||
showHelp();
|
||||
return 0;
|
||||
if (strncasecmp(command, "help", 4) == 0) {
|
||||
if(command[4] == ';' || command[4] == ' ' || command[4] == 0) {
|
||||
showHelp();
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (recordHistory) shellRecordCommandToHistory(command);
|
||||
|
||||
char quote = 0, *cmd = command;
|
||||
|
|
Loading…
Reference in New Issue