Skip to content

Commit

Permalink
Remove null char from help file and republish
Browse files Browse the repository at this point in the history
  • Loading branch information
zix99 committed Jul 19, 2024
1 parent d7d90a2 commit 94bda5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/gendocs.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ package cmd

import (
"fmt"
"strings"

"github.com/urfave/cli/v2"
)
Expand All @@ -20,7 +21,7 @@ func gendocCommand() *cli.Command {
} else {
text, _ = c.App.ToMarkdown()
}
fmt.Print(text)
fmt.Print(strings.ReplaceAll(text, "\x00", "")) //HACK: Some null characters are in generated docs (from array sep?)
return nil
},
Flags: []cli.Flag{
Expand Down
Binary file modified docs/cli-help.md
Binary file not shown.

0 comments on commit 94bda5d

Please sign in to comment.