Browse Source

opt: Correct the separator in _info's example.

Andreas Schlick 15 years ago
parent
commit
641d492d77
1 changed files with 2 additions and 2 deletions
  1. 2 2
      ccan/opt/_info

+ 2 - 2
ccan/opt/_info

@@ -17,13 +17,13 @@
  * 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,
+ * 	OPT_WITHOUT_ARG("--verbose|-v", opt_inc_intval, &verbose,
  *			"Verbose mode (can be specified more than once)"),
  *			"Verbose mode (can be specified more than once)"),
  * 	OPT_WITHOUT_ARG("--someflag", opt_set_bool, &someflag,
  * 	OPT_WITHOUT_ARG("--someflag", opt_set_bool, &someflag,
  *			"Set someflag"),
  *			"Set someflag"),
  * 	OPT_WITH_ARG("--somefile=<filename>", opt_set_charp, opt_show_charp,
  * 	OPT_WITH_ARG("--somefile=<filename>", opt_set_charp, opt_show_charp,
  *		     &somestring, "Set somefile to <filename>"),
  *		     &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.",
  * 			"args...\nA silly test program.",
  *			"Print this message."),
  *			"Print this message."),
  * 	OPT_ENDTABLE
  * 	OPT_ENDTABLE