UNPKG

itk-wasm

Version:

High-performance spatial analysis in a web browser, Node.js, and reproducible execution across programming languages and hardware architectures.

13 lines (11 loc) 387 B
function inputArrayCheck(interfaceJson) { interfaceJson.inputs.forEach((input) => { const isArray = input.itemsExpectedMax > 1 if (isArray) { console.error('Positional multi-value inputs are currently not supported -- please use an option instead') console.error(`Violating option: ${input.name}`) process.exit(1) } }) } export default inputArrayCheck