Skip to content

Commit

Permalink
bump and documented dot notation
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed Dec 9, 2011
1 parent 4a27cd8 commit 6e74aa7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions README.markdown
Expand Up @@ -452,6 +452,17 @@ all the values in order.
'$0': 'node ./examples/reflect.js',
x: [ 5, 8, 0 ] }
dot notation
------------
When you use dots (`.`s) in argument names, an implicit object path is assumed.
This lets you organize arguments into nested objects.
$ node examples/reflect.js --foo.bar.baz=33 --foo.quux=5
{ _: [],
'$0': 'node ./examples/reflect.js',
foo: { bar: { baz: 33 }, quux: 5 } }
installation
============
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name" : "optimist",
"version" : "0.2.8",
"version" : "0.3.0",
"description" : "Light-weight option parsing with an argv hash. No optstrings attached.",
"main" : "./index.js",
"directories" : {
Expand Down

0 comments on commit 6e74aa7

Please sign in to comment.