Skip to content

Commit

Permalink
fix(cmd): to...from was broken since adding version command
Browse files Browse the repository at this point in the history
RootCmd requires a MinimumArgs attribute to be filled in order to expect args.

See: https://github.com/spf13/cobra#example

References #165
  • Loading branch information
fallion committed Feb 20, 2020
1 parent 293deb4 commit 0bdabc7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/cli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ func main() {
RunE: runRoot,
SilenceUsage: true,
SilenceErrors: true,
Args: cobra.MinimumNArgs(0),
}

rootCmd.PersistentFlags().BoolVarP(&Verbose, "verbose", "v", false, "verbose output")
Expand Down

0 comments on commit 0bdabc7

Please sign in to comment.