mirror of
https://github.com/flynx/argv.js.git
synced 2025-12-19 01:51:39 +00:00
docs...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
1d917ba679
commit
0385d36f39
16
README.md
16
README.md
@ -1,2 +1,18 @@
|
|||||||
# ig-argv
|
# ig-argv
|
||||||
|
|
||||||
simple argv parser
|
simple argv parser
|
||||||
|
|
||||||
|
**Note:** this is still a work in progress, more and better docs are
|
||||||
|
coming and the code is still evolving...
|
||||||
|
|
||||||
|
|
||||||
|
# Motivation
|
||||||
|
|
||||||
|
I needed a new argv parser for a quick and dirty project I was working on
|
||||||
|
and evaluating and selecting the propper existing parser and then learining its
|
||||||
|
API, quirks and adapting the architecture to it seemd to be more complicated,
|
||||||
|
require more effort and far less fun than putting together a trivial parser
|
||||||
|
myself in a couple of hours.
|
||||||
|
This code is an evolution of that parser.
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
3
argv.js
3
argv.js
@ -366,9 +366,6 @@ object.Constructor('Parser', {
|
|||||||
//
|
//
|
||||||
// .error(callback(arg))
|
// .error(callback(arg))
|
||||||
//
|
//
|
||||||
//
|
|
||||||
// XXX .then(..) passes the full list of unhandleed args including
|
|
||||||
// argv[0] and argv[1]...
|
|
||||||
then: afterCallback('parsing'),
|
then: afterCallback('parsing'),
|
||||||
stop: afterCallback('stop'),
|
stop: afterCallback('stop'),
|
||||||
error: afterCallback('error'),
|
error: afterCallback('error'),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user