diff --git a/index.html b/index.html index 6a13da3..c8391ca 100644 --- a/index.html +++ b/index.html @@ -61,7 +61,10 @@

Yargs be a node.js library fer hearties tryin' ter pa #!/usr/bin/env node -require('yargs') +import yargs from 'yargs'; +import { hideBin } from 'yargs/helpers'; + +yargs() .scriptName("pirate-parser") .usage('$0 <cmd> [args]') .command('hello [name]', 'welcome ter yargs!', (yargs) => { @@ -74,7 +77,7 @@

Yargs be a node.js library fer hearties tryin' ter pa console.log('hello', argv.name, 'welcome to yargs!') }) .help() - .argv + .parse(hideBin(process.argv))