]> git.ozlabs.org Git - ccan/blobdiff - ccan/opt/_info
tdb2: TDB_ATTRIBUTE_STATS access via tdb_get_attribute.
[ccan] / ccan / opt / _info
index 0e0e0a538bac42ca4efa175e31c911d2c41c6b1a..a464e951e058a1686cdd522281191e70cdfcc8e5 100644 (file)
@@ -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 <ccan/opt/opt.h>
  * 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=<filename>", opt_set_charp, opt_show_charp,
  *                  &somestring, "Set somefile to <filename>"),
- *     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
@@ -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;
        }