File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 5454 "lodash" : " ^4.11.2" ,
5555 "node-fetch" : " ^2.6.0" ,
5656 "pify" : " ^5.0.0" ,
57- "yargs" : " ^17.7.2 "
57+ "yargs" : " ^18.0.0 "
5858 },
5959 "devDependencies" : {
6060 "@eslint/js" : " ^9.39.2" ,
Original file line number Diff line number Diff line change 11#!/usr/bin/env node
22
33const path = require ( 'path' )
4- const yargs = require ( 'yargs' )
4+ const yargs = require ( 'yargs/yargs' )
5+ const { hideBin} = require ( 'yargs/helpers' )
56const chalk = require ( 'chalk' )
67const inquirer = require ( 'inquirer' )
78
@@ -15,7 +16,7 @@ const cwd = process.cwd()
1516const defaultRCFile = path . join ( cwd , '.all-contributorsrc' )
1617
1718function getArgs ( ) {
18- return yargs
19+ return yargs ( hideBin ( process . argv ) )
1920 . scriptName ( 'all-contributors' )
2021 . option ( 'config' , {
2122 alias : 'c' ,
You can’t perform that action at this time.
0 commit comments