Reproduction
Decorator tokens describe the logical name, so they must not include CLI hyphens or whitespace:
src/build.command.ts
import { Command } from 'func'
@Command({ name: '-build' })
class BuildCommand {}How to fix it
Pass the token without leading hyphens and use one non-whitespace segment:
src/build.command.ts
@Command({ name: 'build' })
class BuildCommand {}