()
| 331 | } |
| 332 | |
| 333 | func 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 | } |
nothing calls this directly
no test coverage detected