中文
← Errors

F_SYSTEM_INVALID_OPTION_ALIAS

Invalid option alias

A command, field option, sub-option, or handler flag uses an alias longer than one character.

Updated 2 weeks ago

Reproduction

Aliases represent short options and must contain exactly one character:

src/options.ts
import { Flag } from 'func'

class Options {
  @Flag({ alias: 'vv' })
  verbose = false
}

How to fix it

Use one character or remove the alias:

src/options.ts
class Options {
  @Flag({ alias: 'v' })
  verbose = false
}