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

Function opt_usage_exit_fail

ccan/ccan/opt/usage.c:234–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 8

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