How to use the testnet function from commander
Find comprehensive JavaScript commander.testnet code examples handpicked from public code repositorys.
GitHub: JSEcoin/server
58 59 60 61 62 63 64 65 66 67 68 69 70
.option('-l, --peerlist [value]', 'Custom peer seed','https://load.jsecoin.com:80') // production = https://server.jsecoin.com .option('-p, --port [value]', 'Port', 80) .option('-t, --testnet [value]', 'Launch the testnet as remote, local or log', false) .parse(process.argv); JSE.jseTestNet = commandLine.testnet; if (JSE.jseTestNet !== false) console.log('WARNING: RUNNING IN TESTNET MODE - '+JSE.jseTestNet); // idiot check if (commandLine.nickname) {
31
26
0
+ 5 other calls in file
commander.Option is the most popular function in commander (1786 examples)