中文
← Errors

F_SYSTEM_MISSING_REQUIRED_PARAM

Missing required decorator parameter

A command or option declaration omits a required name or another standalone value.

Updated 2 weeks ago

Reproduction

A required command name is empty:

src/help.command.ts
import { Command } from 'func'

@Command({ name: '' })
class HelpCommand {}

What this error means

A decorator cannot produce complete command metadata from the supplied parameters. The error details.key identifies the missing standalone value; for the example above it is name.

How to fix it

Supply the missing parameter:

src/help.command.ts
@Command({ name: 'help' })
class HelpCommand {}

Command and option names must be non-empty strings. A handler alias without a flag uses the more specific F_SYSTEM_HANDLER_ALIAS_REQUIRES_FLAG code.