more docs...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2020-07-28 03:17:00 +03:00
parent 3e255e8edd
commit 42a9f46f9c
2 changed files with 9 additions and 2 deletions

View File

@ -705,6 +705,13 @@ Values that if returned by option/command handlers can control the parse flow.
skipping `<parser>.then(..)`.
`THEN` is useful when we want to stop option processing and trigger the
post-parse stage (i.e. calling `<parser>.then(..)`) for example to pass
the rest of the options to some other command.
`STOP` is used for options like `-help` when no post-parsing is needed.
### `ParserError(..)`
A base error constructor.

View File

@ -28,10 +28,10 @@ var object = require('ig-object')
//---------------------------------------------------------------------
module.STOP =
{doc: 'stop option processing, triggers .stop(..) handlers'}
{doc: 'Stop option processing, triggers .stop(..) handlers'}
module.THEN =
{doc: 'break option processing, triggers .then(..) handlers'}
{doc: 'Break option processing, triggers .then(..) handlers'}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -