UNPKG

argvex

Version:

Lightweight and unopinionated CLI argument parser — just a parsing tool, not a framework

18 lines (17 loc) 449 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.main = main; const index_1 = require("./index"); async function main(...varargs) { try { console.log((0, index_1.default)({ argv: varargs })); return 0; } catch (error) { console.error(error); return 1; } } main(...process.argv.slice(2)) .then(code => console.log(code)) .catch(error => console.log(error));