File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -265,22 +265,22 @@ async function getCommandLineOptions(
265
265
} ;
266
266
}
267
267
268
- function logHelpAndExit ( ) {
268
+ function logHelpAndExit ( code : number = 0 ) {
269
269
const help = commandLineUsage ( usageDefinitions ) ;
270
270
console . log ( help ) ;
271
- process . exit ( 1 ) ;
271
+ process . exit ( code ) ;
272
272
}
273
273
274
274
function logMissingArgAndExit ( arg : string ) : void {
275
275
console. log ( `\nMissing argument: -${ arg } \n` ) ;
276
- logHelpAndExit ( ) ;
276
+ logHelpAndExit ( 1 ) ;
277
277
}
278
278
279
279
function logMissingAuthAndExit ( ) : void {
280
280
console . log (
281
281
'\nInvalid authentication arguments: please provide either a user and password, or a clientId and clientSecret\n'
282
282
) ;
283
- logHelpAndExit ( ) ;
283
+ logHelpAndExit ( 1 ) ;
284
284
}
285
285
286
286
function normalizeDirectory ( directory : string ) : string {
You can’t perform that action at this time.
0 commit comments