docs/cmdopts.mdwn
changeset 82 06d4a9185902
parent 81 8e1ccd27d60f
--- a/docs/cmdopts.mdwn	Sat Mar 23 03:53:27 2013 +0200
+++ b/docs/cmdopts.mdwn	Sat Mar 23 04:00:49 2013 +0200
@@ -88,7 +88,8 @@
 
 [[!format c """// --------------------------------------------------------------
 
-typedef gchar *(*cmd_handler_t) (cmdopts_t *command, cmdarg_value_t *values);
+typedef gchar *(*cmd_handler_t) (const cmdopts_t *command,
+                                 cmdarg_value_t  *values);
 
 // --------------------------------------------------------------     """     ]]
 
@@ -477,7 +478,7 @@
 cmd_undef (&def_ex1);
 ...
 
-[[!format c """// --------------------------------------------------------------
+// --------------------------------------------------------------     """     ]]
 
 A lot of things to do to achieve a simple goal - does not look quite appealing
 so far.  Still, let's tweak our example a bit.
@@ -811,6 +812,10 @@
 
  * 'nick' - as 'bjidmask' - only provides completion.
 
+Note, that although here I used value indexes 1 and 2 several times for
+different arguments, it is not "clustering", as they are used in different
+subcommands.
+
 ## Argument types
 
 Let's take a look at simple checker, that we've encountered first - 'nonspace':