Skip to content

Commit 0bdabc7

Browse files
author
Simon Prochazka
committed
fix(cmd): to...from was broken since adding version command
RootCmd requires a MinimumArgs attribute to be filled in order to expect args. See: https://github.com/spf13/cobra#example References #165
1 parent 293deb4 commit 0bdabc7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmd/cli/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ func main() {
5353
RunE: runRoot,
5454
SilenceUsage: true,
5555
SilenceErrors: true,
56+
Args: cobra.MinimumNArgs(0),
5657
}
5758

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

0 commit comments

Comments
 (0)