Skip to content

Commit

Permalink
Remove debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
sona-tar committed Jun 21, 2015
1 parent b292bc0 commit a1eafc2
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 37 deletions.
11 changes: 0 additions & 11 deletions debug/debug.go

This file was deleted.

5 changes: 0 additions & 5 deletions debug/env_debug.go

This file was deleted.

5 changes: 0 additions & 5 deletions debug/env_release.go

This file was deleted.

16 changes: 0 additions & 16 deletions option.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package main
import (
"fmt"
"github.com/jessevdk/go-flags"
"github.com/sona-tar/ghs/debug"
"os"
)

Expand All @@ -25,8 +24,6 @@ func GhsOptionParser() ([]string, GhsOptions) {
parser.Usage = "[OPTION] \"QUERY\""
args, err := parser.Parse()

printGhsOption(args, opts)

if err != nil {
ghsOptionError(parser)
}
Expand All @@ -49,19 +46,6 @@ func ghsOptionError(parser *flags.Parser) {
os.Exit(1)
}

func printGhsOption(args []string, opts GhsOptions) {
debug.Printf("args = %v\n", args)

debug.Printf("cmd option sort = %s\n", opts.Sort)
debug.Printf("cmd option order = %s\n", opts.Order)

debug.Printf("cmd option language = %s\n", opts.Language)
debug.Printf("cmd option User = %s\n", opts.User)
debug.Printf("cmd option Repository = %s\n", opts.Repository)
debug.Printf("cmd option Version = %s\n", opts.Version)
debug.Printf("cmd option Enterprise = %s\n", opts.Enterprise)
}

func printGhsHelp(parser *flags.Parser) {
parser.WriteHelp(os.Stdout)
fmt.Printf("\n")
Expand Down

0 comments on commit a1eafc2

Please sign in to comment.