mirror of
https://github.com/thangisme/notes.git
synced 2025-09-25 11:44:11 -04:00
Initial commit
This commit is contained in:
10
node_modules/yargs/example/implies.js
generated
vendored
Normal file
10
node_modules/yargs/example/implies.js
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/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);
|
||||
}
|
Reference in New Issue
Block a user