ffsnode
Version:
[WIP] A simple, efficient Node version manager that aims to be fast, predictable, and frustration-free.
25 lines (22 loc) • 577 B
text/typescript
import yargs from 'yargs';
import { hideBin } from 'yargs/helpers';
import { whyCommand } from './commands/why';
// Create the CLI application
yargs(hideBin(process.argv))
.scriptName('ffsnode')
.usage('$0 <cmd>')
.command(whyCommand)
.demandCommand(
1,
'Hey there! Try "ffsnode why" when you need a little encouragement'
)
.help()
.strict()
.fail((msg, err, yargs) => {
console.log(
'It looks like you might be having a tough time. Try "ffsnode why" for some encouragement.'
);
process.exit(1);
})
.parse();