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

Function rawArgsHaveHelpFlag

cmd/help_json.go:254–264  ·  view source on GitHub ↗
(args []string)

Source from the content-addressed store, hash-verified

252}
253
254func rawArgsHaveHelpFlag(args []string) bool {
255 for _, arg := range args {
256 switch arg {
257 case "--":
258 return false
259 case "--help", "-h":
260 return true
261 }
262 }
263 return false
264}
265
266func rawArgsFirstCommand(args []string) string {
267 for i := 0; i < len(args); i++ {

Callers 2

rawArgsRequestJSONHelpFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected