Permalink
Browse files

bump and documented dot notation

  • Loading branch information...
1 parent 4a27cd8 commit 6e74aa7b46a65773e20c0cb68d2d336d4a0d553d @substack committed Dec 9, 2011
Showing with 12 additions and 1 deletion.
  1. +11 −0 README.markdown
  2. +1 −1 package.json
View
@@ -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
============
View
@@ -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" : {

0 comments on commit 6e74aa7

Please sign in to comment.