in src/input.ts [78:92]
function getOperationType() {
let operationType = getNonRequiredInputString('operation')
if (!operationType) {
return 'deploy'
}
operationType = operationType.toLowerCase()
if (operationType !== 'validate' && operationType !== 'deploy') {
throw new ArgumentError(
`Invalid operation: ${operationType}. It should be either 'validate' or 'deploy'`
)
}
return operationType
}