diff --git a/internal/cli/cli.go b/internal/cli/cli.go index 42bcd7aad..157a67d32 100644 --- a/internal/cli/cli.go +++ b/internal/cli/cli.go @@ -52,7 +52,7 @@ var errUnauthenticated = errors.New("Not yet configured. Try `auth0 login`.") // // 1. --format // 2. --tenant -// 3. --verbose +// 3. --debug // type cli struct { // core primitives exposed to command builders. @@ -60,7 +60,7 @@ type cli struct { renderer *display.Renderer // set of flags which are user specified. - verbose bool + debug bool tenant string format string force bool @@ -103,7 +103,7 @@ func (c *cli) setup() error { } else if t.AccessToken != "" { m, err := management.New(t.Domain, management.WithStaticToken(t.AccessToken), - management.WithDebug(c.verbose), + management.WithDebug(c.debug), management.WithUserAgent(userAgent)) if err != nil { return err diff --git a/internal/cli/root.go b/internal/cli/root.go index 61ecf8863..9b0f1960f 100644 --- a/internal/cli/root.go +++ b/internal/cli/root.go @@ -44,8 +44,8 @@ func Execute() { rootCmd.PersistentFlags().StringVar(&cli.tenant, "tenant", cli.config.DefaultTenant, "Specific tenant to use.") - rootCmd.PersistentFlags().BoolVar(&cli.verbose, - "verbose", false, "Enable verbose mode.") + rootCmd.PersistentFlags().BoolVar(&cli.debug, + "debug", false, "Enable debug mode.") rootCmd.PersistentFlags().StringVar(&cli.format, "format", "", "Command output format. Options: json.")