opt: fix example to compile.
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 7 Oct 2010 04:12:20 +0000 (14:42 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 7 Oct 2010 04:12:20 +0000 (14:42 +1030)
ccan/opt/_info

index da87838c1842721b85b6fb5e1caf63fa1210ad0f..c45b7f28b7653949172ff88211587f91586ebc27 100644 (file)
  * static char *somestring;
  * 
  * 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
  * };
  *