Browse Source

opt: fix example to compile.

Rusty Russell 15 years ago
parent
commit
3e8aea0578
1 changed files with 9 additions and 9 deletions
  1. 9 9
      ccan/opt/_info

+ 9 - 9
ccan/opt/_info

@@ -17,15 +17,15 @@
  * static char *somestring;
  * static char *somestring;
  * 
  * 
  * static struct opt_table opts[] = {
  * static struct opt_table opts[] = {
- * 	{ 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,
- * 			  "args...\nA silly test program.",
- * 	  "Print this message.") },
+ * 	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,
+ * 			"args...\nA silly test program.",
+ *			"Print this message."),
  * 	OPT_ENDTABLE
  * 	OPT_ENDTABLE
  * };
  * };
  * 
  *