-fix return value of taler-fakebank-run with -h option
This commit is contained in:
parent
6150713fc4
commit
84b8886b12
@ -185,14 +185,17 @@ main (int argc,
|
|||||||
&num_threads),
|
&num_threads),
|
||||||
GNUNET_GETOPT_OPTION_END
|
GNUNET_GETOPT_OPTION_END
|
||||||
};
|
};
|
||||||
|
enum GNUNET_GenericReturnValue iret;
|
||||||
|
|
||||||
if (GNUNET_OK !=
|
iret = GNUNET_PROGRAM_run (argc, argv,
|
||||||
GNUNET_PROGRAM_run (argc, argv,
|
|
||||||
"taler-fakebank-run",
|
"taler-fakebank-run",
|
||||||
"Runs the fakebank",
|
"Runs the fakebank",
|
||||||
options,
|
options,
|
||||||
&run,
|
&run,
|
||||||
NULL))
|
NULL);
|
||||||
|
if (GNUNET_SYSERR == iret)
|
||||||
return EXIT_INVALIDARGUMENT;
|
return EXIT_INVALIDARGUMENT;
|
||||||
|
if (GNUNET_NO == iret)
|
||||||
|
return EXIT_SUCCESS;
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user