This repository has been archived on 2023-11-14. You can view files and clone it, but cannot push or open issues/pull-requests.
portapy/index.js

18 lines
466 B
JavaScript
Raw Permalink Normal View History

2018-11-21 20:42:39 -05:00
#!/usr/bin/env node
2018-11-21 20:51:22 -05:00
const minimist = require('minimist');
console.log(minimist(process.args));
2018-11-21 20:42:39 -05:00
let args = process.argv.slice(2);
if (args[0] == 'help' || args[0] == '?' || args[0] == 'h'){
console.log("heres some help");
} else if(args[0] == "version" || args[0] == "v") {
console.log("version number placeholder");
} else if (args[0] == "py" || args[0] == "pyversion") {
if (args[1]){
console.log(args[1]);
} else {
console.log("version of python");
}
}