Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated readme and examples with new auto-numberification goodness
- Loading branch information
James Halliday
committed
Dec 17, 2010
1 parent
73dc901
commit 8f17014
Showing
3 changed files
with
14 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,7 @@ | ||
#!/usr/bin/env node | ||
|
||
var argv = require('optimist') | ||
.default('x', 10) | ||
.default('y', 10) | ||
.argv | ||
; | ||
|
||
var x = parseInt(argv.x, 10); | ||
var y = parseInt(argv.y, 10); | ||
console.log(x + y); | ||
console.log(argv.x + argv.y); |