中文
← Errors

F_SYSTEM_MISSING_REQUIRED_PARAM

Missing required decorator parameter

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

Updated

Reproduction

A required command path is empty:

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

@Command('')
class HelpCommand {}

What this error means

A decorator cannot produce complete command metadata from the supplied parameters. details.key identifies the missing value; in the example above it is path.

How to fix it

Supply the missing parameter:

src/help.command.ts
@Command('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.