Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

fix: use new interface of Yargs #984

Merged
merged 2 commits into from
Feb 8, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/bin.ts
Original file line number Diff line number Diff line change
@@ -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