X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fopt%2F_info;h=9595a168f7e90b6ae5936029c630941721cff21e;hb=97d99004bec31012400b6c1d9bad045ae1c9b075;hp=c45b7f28b7653949172ff88211587f91586ebc27;hpb=3e8aea05784959a63cdb609d248f8266b03b56a6;p=ccan diff --git a/ccan/opt/_info b/ccan/opt/_info index c45b7f28..9595a168 100644 --- a/ccan/opt/_info +++ b/ccan/opt/_info @@ -5,7 +5,10 @@ /** * opt - simple command line parsing * - * Simple but powerful command line parsing, built on top of getopt_long. + * Simple but powerful command line parsing. + * + * See Also: + * ccan/autodata * * Example: * #include @@ -17,13 +20,13 @@ * static char *somestring; * * static struct opt_table opts[] = { - * OPT_WITHOUT_ARG("--verbose/-v", opt_inc_intval, &verbose, + * OPT_WITHOUT_ARG("--verbose|-v", opt_inc_intval, &verbose, * "Verbose mode (can be specified more than once)"), * OPT_WITHOUT_ARG("--someflag", opt_set_bool, &someflag, * "Set someflag"), * OPT_WITH_ARG("--somefile=", opt_set_charp, opt_show_charp, * &somestring, "Set somefile to "), - * OPT_WITHOUT_ARG("--usage/--help/-h", opt_usage_and_exit, + * OPT_WITHOUT_ARG("--usage|--help|-h", opt_usage_and_exit, * "args...\nA silly test program.", * "Print this message."), * OPT_ENDTABLE @@ -49,7 +52,7 @@ * return 0; * } * - * Licence: GPL (3 or any later version) + * License: GPL (v3 or any later version) * Author: Rusty Russell */ int main(int argc, char *argv[]) @@ -58,6 +61,9 @@ int main(int argc, char *argv[]) return 1; if (strcmp(argv[1], "depends") == 0) { + printf("ccan/cast\n"); + printf("ccan/compiler\n"); + printf("ccan/typesafe_cb\n"); return 0; }