Skip to content

Commit

Permalink
fix: yargs import
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrlplusb committed May 24, 2022
1 parent d4db977 commit 429df76
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

import { spawnSync } from "child_process";
import semver from "semver";
import * as yargs from "yargs";
import yargs from "yargs";
import { hideBin } from "yargs/helpers";

import packageJSON from "../package.json";
import { install } from "./actions";
Expand All @@ -21,7 +22,7 @@ if (!semver.satisfies(npmVersion, `>=${requiredMinNpmVersion}`)) {
);
}

yargs
yargs(hideBin(process.argv))
.usage(cliCommand + " [command] [options]")
.command({
command: "*",
Expand Down

0 comments on commit 429df76

Please sign in to comment.