update pake-cli to 2.0.0-alpha2
This commit is contained in:
2
bin/utils/validate.ts
vendored
2
bin/utils/validate.ts
vendored
@@ -5,7 +5,7 @@ import fs from 'fs';
|
||||
export function validateNumberInput(value: string) {
|
||||
const parsedValue = Number(value);
|
||||
if (isNaN(parsedValue)) {
|
||||
throw new Commander.InvalidArgumentError('The input cannot be a number.');
|
||||
throw new Commander.InvalidArgumentError('Not a number.');
|
||||
}
|
||||
return parsedValue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user