]> git.ozlabs.org Git - ccan/commit
opt: allow show callbacks to return false.
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 8 May 2023 01:30:31 +0000 (11:00 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 20 Jun 2023 03:08:36 +0000 (12:38 +0930)
commit3beff01ae4dfb8b843bf5e78905fb8bc434cb270
treea073a94f128243762527f54ad6f2842d954d42ca
parent995d2aff223e70ef5c60ac0416645b27ac84d5ff
opt: allow show callbacks to return false.

Sometimes, arguments are optional, so it's useful to decide at runtime
whether to print a default in --help.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ccan/opt/helpers.c
ccan/opt/opt.c
ccan/opt/opt.h
ccan/opt/test/run-add_desc.c
ccan/opt/test/utils.c
ccan/opt/test/utils.h
ccan/opt/usage.c