Skip to content

Commit

Permalink
CLI-19: Replace --verbose with --debug.
Browse files Browse the repository at this point in the history
  • Loading branch information
rene00 committed Feb 21, 2021
1 parent d4cfb4e commit 3e1c9b8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions internal/cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@ 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.
api *auth0.API
renderer *display.Renderer

// set of flags which are user specified.
verbose bool
debug bool
tenant string
format string
force bool
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions internal/cli/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down

0 comments on commit 3e1c9b8

Please sign in to comment.