mirror of
https://github.com/flynx/argv.js.git
synced 2025-10-30 11:10:07 +00:00
more docs...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
3e255e8edd
commit
42a9f46f9c
@ -705,6 +705,13 @@ Values that if returned by option/command handlers can control the parse flow.
|
|||||||
skipping `<parser>.then(..)`.
|
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(..)`
|
### `ParserError(..)`
|
||||||
|
|
||||||
A base error constructor.
|
A base error constructor.
|
||||||
|
|||||||
4
argv.js
4
argv.js
@ -28,10 +28,10 @@ var object = require('ig-object')
|
|||||||
//---------------------------------------------------------------------
|
//---------------------------------------------------------------------
|
||||||
|
|
||||||
module.STOP =
|
module.STOP =
|
||||||
{doc: 'stop option processing, triggers .stop(..) handlers'}
|
{doc: 'Stop option processing, triggers .stop(..) handlers'}
|
||||||
|
|
||||||
module.THEN =
|
module.THEN =
|
||||||
{doc: 'break option processing, triggers .then(..) handlers'}
|
{doc: 'Break option processing, triggers .then(..) handlers'}
|
||||||
|
|
||||||
|
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user