mirror of
https://github.com/flynx/argv.js.git
synced 2026-01-06 02:31:08 +00:00
more docs...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
2c4764341a
commit
dbd7653e23
14
README.md
14
README.md
@ -251,7 +251,19 @@ var parser = argv.Parser({
|
||||
//
|
||||
// These define .handler's...
|
||||
|
||||
// XXX .handler
|
||||
'-active': {
|
||||
doc: 'basic active option',
|
||||
handler: function(args, key, value){
|
||||
// ...
|
||||
} },
|
||||
|
||||
// a shorthand active option...
|
||||
// NOTE: this is recomended only for quick and dirty mashups and not
|
||||
// for production code...
|
||||
'-s': '-shorthand-active',
|
||||
'-shorthand-active': function(args, key, value){
|
||||
// ...
|
||||
},
|
||||
|
||||
|
||||
// Nested parsers...
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user