复现
接收列表的装饰器即使只有一个元素也需要数组:
src/build.command.ts
import { SubOptions } from 'func'
@SubOptions({ name: 'verbose' } as any)
class BuildCommand {}如何修复
把传入的元素包裹在数组中:
src/build.command.ts
@SubOptions([{ name: 'verbose' }])
class BuildCommand {}