taos shell: exit --help option with EXIT_SUCCESS

This commit is contained in:
Shengliang Guan 2021-01-26 11:02:22 +08:00
parent b89054644f
commit 8fe4e9ca40
1 changed files with 1 additions and 1 deletions

View File

@ -174,7 +174,7 @@ void shellParseArgument(int argc, char *argv[], SShellArguments *arguments) {
// For temperory command TODO
else if (strcmp(argv[i], "--help") == 0) {
printHelp();
exit(EXIT_FAILURE);
exit(EXIT_SUCCESS);
} else {
fprintf(stderr, "wrong options\n");
printHelp();