1
0
mirror of https://github.com/thangisme/notes.git synced 2024-12-22 23:16:40 -05:00
notes/node_modules/yargs/example/implies.js

11 lines
176 B
JavaScript
Raw Normal View History

2017-03-09 13:16:08 -05:00
#!/usr/bin/env node
var argv = require('yargs')
.usage('Usage: $0 -x [num] -y [num]')
.implies('x', 'y')
.argv;
if (argv.x) {
console.log(argv.x / argv.y);
}