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

Function init

cmd/root.go:333–344  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

331}
332
333func init() {
334 RootCmd.PersistentFlags().BoolP("verbose", "v", false, "Enable verbose logging")
335 RootCmd.PersistentFlags().String(outputFlag, "text", "Output format: text, json")
336 RootCmd.PersistentFlags().Duration("timeout", 0, "Timeout for Dropbox network operations (0 disables; examples: 30s, 2m, 1h)")
337 RootCmd.PersistentFlags().String("as-member", "", "Member ID to perform action as")
338 // This flag should only be used for testing. Marked hidden so it doesn't clutter usage etc.
339 RootCmd.PersistentFlags().String("domain", "", "Override default Dropbox domain, useful for testing")
340 _ = RootCmd.PersistentFlags().MarkHidden("domain")
341
342 loadOAuthCredentialsFromEnv()
343 installJSONHelp(RootCmd)
344}

Callers

nothing calls this directly

Calls 2

installJSONHelpFunction · 0.85

Tested by

no test coverage detected