We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2d3979 commit 4633d39Copy full SHA for 4633d39
index.html
@@ -61,7 +61,10 @@ <h1 class="pink-highlight">Yargs be a node.js library fer hearties tryin' ter pa
61
<code class="hljs language-javascript">
62
#!/usr/bin/env node
63
64
-require('yargs')
+import yargs from 'yargs';
65
+import { hideBin } from 'yargs/helpers';
66
+
67
+yargs()
68
.scriptName("pirate-parser")
69
.usage('$0 <cmd> [args]')
70
.command('hello [name]', 'welcome ter yargs!', (yargs) => {
@@ -74,7 +77,7 @@ <h1 class="pink-highlight">Yargs be a node.js library fer hearties tryin' ter pa
74
77
console.log('hello', argv.name, 'welcome to yargs!')
75
78
})
76
79
.help()
- .argv
80
+ .parse(hideBin(process.argv))
81
82
</code>
83
</pre>
0 commit comments