]> git.ozlabs.org Git - ccan/blobdiff - ccan/opt/_info
opt: increase testing coverage on 64 bit platforms
[ccan] / ccan / opt / _info
index a051832408738416bdbc5121522b7c6d6491ee03..9bcf5393d5dbcd8b3623958267181f278bbd198d 100644 (file)
  * 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 +49,7 @@
  *     return 0;
  * }
  *
- * License: GPL (3 or any later version)
+ * License: GPL (v3 or any later version)
  * Author: Rusty Russell <rusty@rustcorp.com.au>
  */
 int main(int argc, char *argv[])