Skip to content

Commit

Permalink
fix some flags parsing (#10134)
Browse files Browse the repository at this point in the history
  • Loading branch information
AskAlexSharov authored Apr 30, 2024
1 parent d8bf235 commit 7edc0b8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/utils/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -1912,6 +1912,8 @@ func CobraFlags(cmd *cobra.Command, urfaveCliFlagsLists ...[]cli.Flag) {
switch f := flag.(type) {
case *cli.IntFlag:
flags.Int(f.Name, f.Value, f.Usage)
case *cli.UintFlag:
flags.Uint(f.Name, f.Value, f.Usage)
case *cli.StringFlag:
flags.String(f.Name, f.Value, f.Usage)
case *cli.BoolFlag:
Expand Down

0 comments on commit 7edc0b8

Please sign in to comment.