mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
Plugins do not set "type" on options they propose, and if they're boolean options, treating them as strings breaks handling
11 lines
288 B
JavaScript
11 lines
288 B
JavaScript
'use strict';
|
|
|
|
module.exports = {
|
|
help: { usage: 'Show this message', shortcut: 'h', type: 'boolean' },
|
|
version: { usage: 'Show version info', type: 'boolean' },
|
|
};
|
|
|
|
for (const optionSchema of Object.values(module.exports)) {
|
|
if (!optionSchema.type) optionSchema.type = 'string';
|
|
}
|