Created
February 5, 2017 19:27
-
-
Save agtokty/e252cd88f15dc27c1ced943e99cb150b to your computer and use it in GitHub Desktop.
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
var cVal = getParam(process.argv,"--c");//kek | |
var tVal = getParam(process.argv,"--t");//lol | |
function getParam(argv, paramName){ | |
if (argv.indexOf(paramName) != -1) | |
return argv[argv.indexOf(paramName) + 1]; | |
else | |
return null; | |
} | |
console.log( " --c value : " + cVal); | |
console.log( " --t value : " + tVal); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment