]> git.ozlabs.org Git - ccan/blobdiff - ccan/opt/_info
ccan: Correct some poor conventions in _info includes
[ccan] / ccan / opt / _info
index 5e177a10e296766219dc8b36564e714a740ab030..103962069b6b4c813fe45fbe2a02006e72128a77 100644 (file)
@@ -1,11 +1,14 @@
+#include "config.h"
 #include <stdio.h>
 #include <string.h>
-#include "config.h"
 
 /**
  * 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 <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
@@ -49,7 +52,7 @@
  *     return 0;
  * }
  *
- * Licence: GPL (3 or any later version)
+ * License: GPL (v2 or any later version)
  * Author: Rusty Russell <rusty@rustcorp.com.au>
  */
 int main(int argc, char *argv[])
@@ -58,6 +61,8 @@ 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;
        }