File tree 1 file changed +5
-10
lines changed
1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -240,16 +240,11 @@ const main = async (args: Args, configArgs: Args): Promise<void> => {
240
240
}
241
241
242
242
async function entry ( ) : Promise < void > {
243
- const tryParse = async ( ) : Promise < [ Args , Args , Args ] > => {
244
- const cliArgs = parse ( process . argv . slice ( 2 ) )
245
- const configArgs = await readConfigFile ( cliArgs . config )
246
- // This prioritizes the flags set in args over the ones in the config file.
247
- let args = Object . assign ( configArgs , cliArgs )
248
- args = await setDefaults ( args )
249
- return [ args , cliArgs , configArgs ]
250
- }
251
-
252
- const [ args , cliArgs , configArgs ] = await tryParse ( )
243
+ const cliArgs = parse ( process . argv . slice ( 2 ) )
244
+ const configArgs = await readConfigFile ( cliArgs . config )
245
+ // This prioritizes the flags set in args over the ones in the config file.
246
+ let args = Object . assign ( configArgs , cliArgs )
247
+ args = await setDefaults ( args )
253
248
254
249
// There's no need to check flags like --help or to spawn in an existing
255
250
// instance for the child process because these would have already happened in
You can’t perform that action at this time.
0 commit comments