Skip to content

Commit

Permalink
fix: use new interface of Yargs (#984)
Browse files Browse the repository at this point in the history
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
ehmicky and kodiakhq[bot] committed Feb 8, 2022
1 parent dc12508 commit 33dbff2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/bin.ts
@@ -1,7 +1,8 @@
#!/usr/bin/env node
import { exit } from 'process'
import { argv, exit } from 'process'

import yargs from 'yargs'
import { hideBin } from 'yargs/helpers'

import type { ArchiveFormat } from './archive'
import { zipFunctions } from './main'
Expand All @@ -23,7 +24,7 @@ const runCli = async function () {
}

const parseArgs = function () {
return yargs
return yargs(hideBin(argv))
.command('* <srcFolder> <destFolder>', 'Create ZIP archives from a directory')
.options(OPTIONS)
.usage(USAGE)
Expand Down

1 comment on commit 33dbff2

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⏱ Benchmark results

largeDepsEsbuild: 7.4s

largeDepsNft: 33.1s

largeDepsZisi: 57.8s

Please sign in to comment.