taos shell: exit --help option with EXIT_SUCCESS
This commit is contained in:
parent
b89054644f
commit
8fe4e9ca40
|
@ -174,7 +174,7 @@ void shellParseArgument(int argc, char *argv[], SShellArguments *arguments) {
|
||||||
// For temperory command TODO
|
// For temperory command TODO
|
||||||
else if (strcmp(argv[i], "--help") == 0) {
|
else if (strcmp(argv[i], "--help") == 0) {
|
||||||
printHelp();
|
printHelp();
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_SUCCESS);
|
||||||
} else {
|
} else {
|
||||||
fprintf(stderr, "wrong options\n");
|
fprintf(stderr, "wrong options\n");
|
||||||
printHelp();
|
printHelp();
|
||||||
|
|
Loading…
Reference in New Issue