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

Function rawArgsHelpOutputFormatError

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

Source from the content-addressed store, hash-verified

217}
218
219func rawArgsHelpOutputFormatError(args []string) error {
220 if !rawArgsHaveHelpFlag(args) {
221 return nil
222 }
223 value, ok := rawArgsOutputValue(args)
224 if !ok {
225 return nil
226 }
227 _, err := parseOutputFormat(value)
228 return err
229}
230
231func rawArgsOutputValue(args []string) (string, bool) {
232 value := ""

Callers 2

ExecuteFunction · 0.85

Calls 3

rawArgsHaveHelpFlagFunction · 0.85
rawArgsOutputValueFunction · 0.85
parseOutputFormatFunction · 0.85

Tested by 1