Skip to content

Commit

Permalink
Fix the ut ci failure (streamnative#352)
Browse files Browse the repository at this point in the history
---

*Motivation*

UT CI failed by
```
Usage of /tmp/go-build218884213/b001/pulsarctl.test:
  -version
        print program build version
        FAIL    github.com/streamnative/pulsarctl   0.017s
```
  • Loading branch information
zymap authored May 31, 2021
1 parent 093dce0 commit 9f876af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ var (
)

func main() {
flag.Parse()
rootCmd := pkg.NewPulsarctlCmd()
handler := plugin.NewDefaultPluginHandler(plugin.ValidPluginFilenamePrefixes)
if printVersion {
Expand Down Expand Up @@ -70,5 +71,4 @@ func getArgs() []string {

func init() {
flag.BoolVar(&printVersion, "version", false, "print program build version")
flag.Parse()
}

0 comments on commit 9f876af

Please sign in to comment.