Skip to content

Commit

Permalink
add flag to user command
Browse files Browse the repository at this point in the history
  • Loading branch information
doneill committed Dec 9, 2023
1 parent 3edc70a commit d7906be
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import (
"github.com/spf13/cobra"
)

var all bool

// ----------------------------------------------
// user command
// ----------------------------------------------
Expand Down Expand Up @@ -79,4 +81,5 @@ func user() {

func init() {
rootCmd.AddCommand(userCmd)
userCmd.Flags().BoolVarP(&all, "all", "a", false, "list all user parameters")
}

0 comments on commit d7906be

Please sign in to comment.