#!/usr/bin/env node; const Utils = require('./Utils'); const main = async () => { let max = 5; if (process.argv.length == 3) { max = Utils.stoiWithDefault(process.argv[2], 5); } for (let i = 0; i < max; ++i) { console.log("Hello, world!"); } } main().catch( e => { console.error(e) } );