diff --git a/README.md b/README.md index 1c3c6ed..f40a211 100644 --- a/README.md +++ b/README.md @@ -94,6 +94,8 @@ This code is an evolution of that parser. - [`.handlerDefault(..)`](#parserhandlerdefault) - [`.handleArgumentValue(..)`](#parserhandleargumentvalue) - [`.handleErrorExit(..)`](#parserhandleerrorexit) + - [`.handle(..)`](#parserhandle) + - [`.setHandlerValue(..)`](#parsersethandlervalue) - [More...](#more) - [License](#license) @@ -210,7 +212,7 @@ var parser = argv.Parser({ }) ``` -This will create a parser that supports the following: +This will create a parser that supports the folowing: ```shell $ ./script.js --help @@ -261,10 +263,10 @@ The `` expects/handles the following data in the `` object: - option/command aliases An alias is an option/command key with a _string_ value. That value _references_ a different option or command, i.e. is an - option/command name. + option/commnad name. Looping (referencing the original alias) or dead-end (referencing - non-existent options) aliases are ignored. + non-existant options) aliases are ignored. ### Option/command configuration @@ -335,9 +337,9 @@ Option/command priority in the `-help`. Can be a positive or negative number or `undefined`. Ordering is as follows: -- options in descending positive `.priority`, +- options in decending positive `.priority`, - options with undefined `.priority` in order of definition, -- options in descending negative `.priority`. +- options in decending negative `.priority`. Note that options and commands are grouped separately. @@ -351,13 +353,13 @@ arg: '' arg: ' | ' ``` -If defined and no explicit value is passed to the option command (via `=`) +If defined and no explicit value is passed to the option comand (via `=`) then the _parser_ will consume the directly next non-option if present in `argv` as a value, passing it to the `