Skip to content

Commit

Permalink
fix: disable build-in help and version
Browse files Browse the repository at this point in the history
  • Loading branch information
axetroy committed Sep 2, 2023
1 parent bbf525f commit 53d61bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/cli/src/index.ts
Expand Up @@ -11,7 +11,7 @@ import path from "path";
import { hideBin } from "yargs/helpers";
import yargs from "yargs/yargs";

const argv = yargs(hideBin(process.argv)).argv;
const argv = yargs(hideBin(process.argv)).help(false).version(false).argv;

function printHelp(exitCode: number = 0) {
process.stderr.write(`Usage: iconfont-componentized-cli [options]
Expand Down Expand Up @@ -60,7 +60,7 @@ function getGenerator(target: string, config: Config) {
break;
case "taro-react":
gen = new TaroReactComponentGenerator(DiskWriter, config);
break
break;
case "vue":
gen = new VueComponentGenerator(DiskWriter, config);
break;
Expand Down

0 comments on commit 53d61bd

Please sign in to comment.