benchmark: don't crash on --help
This commit is contained in:
parent
281c5e3879
commit
ff96695e47
@ -849,13 +849,12 @@ main (int argc,
|
|||||||
|
|
||||||
unsetenv ("XDG_DATA_HOME");
|
unsetenv ("XDG_DATA_HOME");
|
||||||
unsetenv ("XDG_CONFIG_HOME");
|
unsetenv ("XDG_CONFIG_HOME");
|
||||||
if (GNUNET_SYSERR ==
|
if (0 >=
|
||||||
(result = GNUNET_GETOPT_run ("taler-exchange-benchmark",
|
(result = GNUNET_GETOPT_run ("taler-exchange-benchmark",
|
||||||
options,
|
options,
|
||||||
argc,
|
argc,
|
||||||
argv)))
|
argv)))
|
||||||
{
|
{
|
||||||
TALER_LOG_ERROR ("Unparsable CLI options\n");
|
|
||||||
return BAD_CLI_ARG;
|
return BAD_CLI_ARG;
|
||||||
}
|
}
|
||||||
GNUNET_log_setup ("taler-exchange-benchmark",
|
GNUNET_log_setup ("taler-exchange-benchmark",
|
||||||
|
Loading…
Reference in New Issue
Block a user