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

Function isJSONHelpCommand

cmd/help_json.go:211–213  ·  view source on GitHub ↗
(cmd *cobra.Command)

Source from the content-addressed store, hash-verified

209}
210
211func isJSONHelpCommand(cmd *cobra.Command) bool {
212 return cmd != nil && cmd.Annotations[commandJSONHelpAnnotation] == "true"
213}
214
215func rawArgsRequestJSONHelp(args []string) bool {
216 return outputJSONRequested(args) && (rawArgsHaveHelpFlag(args) || rawArgsFirstCommand(args) == "help")

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected