Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/Schniz/cmd-ts. 💻 A type-driven command line argument parser cmd-ts.now.sh
Something went wrong. Try again.
123456789101112131415import { command, rest, binary, run, positional } from '../src';
const cmd = command({ args: { scriptName: positional(), everythingElse: rest(), }, name: 'hi', handler({ scriptName, everythingElse }) { console.log(JSON.stringify({ scriptName, everythingElse })); },});
run(binary(cmd), process.argv);