Skip to content
This repository has been archived by the owner on Oct 29, 2023. It is now read-only.

Commit

Permalink
fixed syntax error in tree.go
Browse files Browse the repository at this point in the history
  • Loading branch information
datacharmer committed May 5, 2018
1 parent 471675e commit 000ef9f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cmd/tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ package cmd

import (
"fmt"
"os"
"strings"
"github.com/spf13/cobra"
"github.com/spf13/cobra/doc"
Expand Down Expand Up @@ -64,7 +63,7 @@ func WriteManPages() {
func WriteMarkdownPages() {
md_dir := "markdown_pages"
if common.DirExists(md_dir) {
common.Exit(fmt.Sprintf("Markdown pages directory '%s' exists already.",md_dir))
common.Exit(1, fmt.Sprintf("Markdown pages directory '%s' exists already.",md_dir))
}
common.Mkdir(md_dir)
err := doc.GenMarkdownTree(rootCmd, md_dir)
Expand Down Expand Up @@ -97,7 +96,7 @@ func MakeDocumentation(cmd *cobra.Command, args []string) {
md_pages, _ := flags.GetBool("markdown-pages")
rst_pages, _ := flags.GetBool("rst-pages")
if (man_pages && api) || (api && bash_completion) || (api && md_pages) || (api && rst_pages) {
common,Exit(1, "Choose one option only")
common.Exit(1, "Choose one option only")
}
if rst_pages {
WriteRstPages()
Expand Down

0 comments on commit 000ef9f

Please sign in to comment.