MCPcopy Create free account
hub / github.com/dropbox/dbxcli / jsonHelpHasFlag

Function jsonHelpHasFlag

cmd/help_json_test.go:1031–1038  ·  view source on GitHub ↗
(flags []jsonCommandFlag, name string)

Source from the content-addressed store, hash-verified

1029}
1030
1031func jsonHelpHasFlag(flags []jsonCommandFlag, name string) bool {
1032 for _, flag := range flags {
1033 if flag.Name == name {
1034 return true
1035 }
1036 }
1037 return false
1038}
1039
1040func jsonHelpFlagByName(t *testing.T, flags []jsonCommandFlag, name string) jsonCommandFlag {
1041 t.Helper()

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected