MCPcopy Create free account
hub / github.com/Effect-TS/effect / message

Method message

packages/effect/src/unstable/cli/CliError.ts:137–145  ·  view source on GitHub ↗

* Formats the unrecognized option with command context and suggestions. * * @since 4.0.0

()

Source from the content-addressed store, hash-verified

135 * @since 4.0.0
136 */
137 override get message() {
138 const suggestionText = this.suggestions.length > 0
139 ? `\n\n Did you mean this?\n ${this.suggestions.join("\n ")}`
140 : ""
141 const baseMessage = this.command
142 ? `Unrecognized flag: ${this.option} in command ${this.command.join(" ")}`
143 : `Unrecognized flag: ${this.option}`
144 return baseMessage + suggestionText
145 }
146}
147
148/**

Callers

nothing calls this directly

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected