Skip to content

Commit

Permalink
divide example
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed Sep 10, 2010
1 parent 07b3d76 commit a01caeb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions examples/divide.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env node

var argv = require('optimist')
.usage('Usage: $0 --foo=x --bar=y')
.demand(['foo','bar'])
.argv;

console.log(argv.foo / argv.bar);

0 comments on commit a01caeb

Please sign in to comment.