Skip to content

Commit 40fb2ae

Browse files
committed
correct docs root
1 parent ba990d0 commit 40fb2ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/docs.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ var CmdDocs = &cli.Command{
3333
}
3434

3535
func runDocs(_ context.Context, cmd *cli.Command) error {
36-
docs, err := cli_docs.ToMarkdown(cmd)
36+
docs, err := cli_docs.ToMarkdown(cmd.Root())
3737
if cmd.Bool("man") {
38-
docs, err = cli_docs.ToMan(cmd)
38+
docs, err = cli_docs.ToMan(cmd.Root())
3939
}
4040
if err != nil {
4141
return err

0 commit comments

Comments
 (0)