Skip to content
Browse files

move around README sections

  • Loading branch information...
1 parent c7d54e5 commit ecdff846eb24c2d2bcde621942d5d325ca4d681d @harthur committed Aug 24, 2010
Showing with 7 additions and 8 deletions.
  1. +7 −8 README.md
View
15 README.md
@@ -1,13 +1,6 @@
# argparse
argparse is a small option parser for CommonJS.
-# Install
-for [node.js](http://nodejs.org/) and [npm](http://github.com/isaacs/npm):
- git clone http://github.com/harthur/argparse
- cd argparse
- npm install .
-
-# Usage
var argparse = require("argparse");
var opts = [
@@ -26,8 +19,14 @@ for [node.js](http://nodejs.org/) and [npm](http://github.com/isaacs/npm):
if(options.debug)
// do stuff
-
+# Install
+for [node.js](http://nodejs.org/) and [npm](http://github.com/isaacs/npm):
+ git clone http://github.com/harthur/argparse
+ cd argparse
+ npm install .
+
+# More Details
By default, argparse parses [node](http://nodejs.org/)'s `process.argv`. You can also pass in the args:
var options = parser.parse(["-xvf", "--atomic=true"])

0 comments on commit ecdff84

Please sign in to comment.
Something went wrong with that request. Please try again.