MCPcopy Create free account
hub / github.com/ElementsProject/lightning / opt_usage_exit_fail

Function opt_usage_exit_fail

ccan/ccan/opt/usage.c:238–250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

236}
237
238void opt_usage_exit_fail(const char *msg, ...)
239{
240 va_list ap;
241
242 if (opt_argv0)
243 fprintf(stderr, "%s: ", opt_argv0);
244 va_start(ap, msg);
245 vfprintf(stderr, msg, ap);
246 va_end(ap);
247 fprintf(stderr, "\n%s",
248 opt_usage(opt_argv0 ? opt_argv0 : "<program>", NULL));
249 exit(1);
250}

Callers 9

mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
do_decodeFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls 1

opt_usageFunction · 0.85

Tested by

no test coverage detected