From: Rusty Russell Date: Thu, 7 Oct 2010 23:41:11 +0000 (+1030) Subject: opt: add opt_log_stderr_exit helper, and opt_usage NULL option. X-Git-Url: https://git.ozlabs.org/?a=commitdiff_plain;ds=sidebyside;h=0191b7a74144ea8193961235f45715e715d4d8eb;hp=0191b7a74144ea8193961235f45715e715d4d8eb;p=ccan opt: add opt_log_stderr_exit helper, and opt_usage NULL option. The former encapsulates a common "just exit on error" case, the latter avoids having to repeat the extra usage string. (We actually would have crashed before if someone passed NULL there, even though the documentation said you could). ---