diff --git a/README.md b/README.md index af3ec04..f7c6a65 100644 --- a/README.md +++ b/README.md @@ -98,7 +98,8 @@ Parser(..) -> (..) -> (...) -> ``` - - option handlers (defined in ``) are called while parsing, + - arguments are handled in order of occurrence, + - argument handlers (defined in ``) are called while parsing, - then/stop/error ``'s are called after the `` is done, - everything is run in the _context_ of the `` object so any data set on it is accessible after parsing is done for further @@ -218,18 +219,22 @@ These, if encountered, simply assign a value to an attribute on the parsed objec Any option/command can be passed a value, either explicitly (e.g. `-opt=123`) or implicitly by first setting `.arg` (see examples below) and and then passing `-opt 123`. -If no value is given `true` is assigned to option attribute on the parsed object -to indicate that the option/command is present in the command-line. +If option is given but no value is set, `undefined` is assigned to option +attribute on the parsed object to indicate that the option/command is present +in the command-line. +Note that values can be set on the command-line as well as via +[`