MCPcopy Create free account
hub / github.com/microsoft/typescript-go / getDisplayNameTextOfOption

Function getDisplayNameTextOfOption

internal/execute/tsc/help.go:424–426  ·  view source on GitHub ↗
(option *tsoptions.CommandLineOption)

Source from the content-addressed store, hash-verified

422}
423
424func getDisplayNameTextOfOption(option *tsoptions.CommandLineOption) string {
425 return "--" + option.Name + core.IfElse(option.ShortName != "", ", -"+option.ShortName, "")
426}

Callers 2

generateOptionOutputFunction · 0.85

Calls 1

IfElseFunction · 0.92

Tested by

no test coverage detected