X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fopt%2F_info;h=9bcf5393d5dbcd8b3623958267181f278bbd198d;hp=0e0e0a538bac42ca4efa175e31c911d2c41c6b1a;hb=f51a60f73a22533ec38c12fc63f2837e355a0f88;hpb=7f63d84eb712c54c57c3d4e9a92ffefe2f1b2ade;ds=inline diff --git a/ccan/opt/_info b/ccan/opt/_info index 0e0e0a53..9bcf5393 100644 --- a/ccan/opt/_info +++ b/ccan/opt/_info @@ -5,7 +5,7 @@ /** * opt - simple command line parsing * - * Simple but powerful command line parsing, built on top of getopt_long. + * Simple but powerful command line parsing. * * Example: * #include @@ -17,13 +17,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 +49,7 @@ * return 0; * } * - * License: GPL (3 or any later version) + * License: GPL (v3 or any later version) * Author: Rusty Russell */ int main(int argc, char *argv[]) @@ -59,6 +59,7 @@ int main(int argc, char *argv[]) if (strcmp(argv[1], "depends") == 0) { printf("ccan/typesafe_cb\n"); + printf("ccan/compiler\n"); return 0; }