summaryrefslogtreecommitdiffstats
path: root/commands/genman.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/genman.go')
-rw-r--r--commands/genman.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/commands/genman.go b/commands/genman.go
index 68a98a46d..a842b49b8 100644
--- a/commands/genman.go
+++ b/commands/genman.go
@@ -18,7 +18,7 @@ var genmanCmd = &cobra.Command{
command-line interface. By default, it creates the man page files
in the "man" directory under the current directory.`,
- Run: func(cmd *cobra.Command, args []string) {
+ RunE: func(cmd *cobra.Command, args []string) error {
header := &cobra.GenManHeader{
Section: "1",
Manual: "Hugo Manual",
@@ -37,6 +37,8 @@ in the "man" directory under the current directory.`,
cmd.Root().GenManTree(header, genmandir)
jww.FEEDBACK.Println("Done.")
+
+ return nil
},
}