mirror of
https://github.com/open62541/open62541.git
synced 2026-10-29 05:11:36 +08:00
[FIX] Usability bug fix in server_ctt
- At present the check "help" in argv to call the usage() function is not handled as expected - In either case the the code goes into the if condition and returns EXIT_SUCCESS - Fix the minor issue so that code returns this status if it identifies --help or -h Change-Id: I56876ac562647076a5b33259b2ea398b3bc5e584 Signed-off-by: Asish Ganesh <asish.g@kalycito.com>
This commit is contained in:
committed by
Julius Pfrommer
parent
5afcb642a7
commit
2ef4bfd34b
@@ -456,7 +456,7 @@ int main(int argc, char **argv) {
|
||||
signal(SIGTERM, stopHandler);
|
||||
|
||||
for(int i = 1; i < argc; i++) {
|
||||
if(strcmp(argv[i], "--help") ||
|
||||
if(strcmp(argv[i], "--help") == 0 ||
|
||||
strcmp(argv[i], "-h") == 0) {
|
||||
usage();
|
||||
return EXIT_SUCCESS;
|
||||
|
||||
Reference in New Issue
Block a user