Skip to content

Commit

Permalink
Upgrade Yargs
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Jun 18, 2021
1 parent 3f834a3 commit 8db80cd
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/bin/top.js
@@ -1,8 +1,16 @@
/* eslint-disable max-lines */
import { argv } from 'process'

import yargs from 'yargs'
// eslint-disable-next-line node/file-extension-in-import
import { hideBin } from 'yargs/helpers'

export const defineCli = function () {
return yargs.options(CONFIG).usage(USAGE).example(EXAMPLES).strict()
return yargs(hideBin(argv))
.options(CONFIG)
.usage(USAGE)
.example(EXAMPLES)
.strict()
}

const CONFIG = {
Expand Down

0 comments on commit 8db80cd

Please sign in to comment.