MCPcopy Create free account
hub / github.com/larksuite/cli / normalizeFlag

Function normalizeFlag

cmd/cmdexample_parse_test.go:212–214  ·  view source on GitHub ↗

normalizeFlag extracts the canonical flag token from tok, or "" if tok is not a real flag (e.g. a shell-string fragment like "-草稿'").

(tok string)

Source from the content-addressed store, hash-verified

210// normalizeFlag extracts the canonical flag token from tok, or "" if tok is not
211// a real flag (e.g. a shell-string fragment like "-草稿'").
212func normalizeFlag(tok string) string {
213 return flagShape.FindString(tok)
214}
215
216func isBoundary(b byte) bool {
217 switch b {

Callers 1

parseCmdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected