Skip to content

Commit

Permalink
fix: use correct dir for clidoc
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Feb 18, 2022
1 parent 40b7db3 commit 8c8a1ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/clidoc/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func init() {
}

func main() {
if err := clidoc.Generate(cmd.NewRootCmd(), os.Args[2:]); err != nil {
if err := clidoc.Generate(cmd.NewRootCmd(), []string{filepath.Join(os.Args[2], "cli")}); err != nil {
_, _ = fmt.Fprintf(os.Stderr, "Unable to generate CLI docs: %+v", err)
os.Exit(1)
}
Expand Down

0 comments on commit 8c8a1ab

Please sign in to comment.