default_singles.js 137 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 #!/usr/bin/env node var argv = require('optimist') .default('x', 10) .default('y', 10) .argv ; console.log(argv.x + argv.y);