Skip to content

Commit

Permalink
move flag vars into main
Browse files Browse the repository at this point in the history
  • Loading branch information
ezekg committed Nov 16, 2015
1 parent 77622c1 commit ca20873
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions main.go
Expand Up @@ -8,13 +8,13 @@ import (
"os"
)

var (
noColor = flag.Bool("no-color", false, "Disable color output")
config = flag.String("config", ".githound.yml", "Hound config file")
bin = flag.String("bin", "git", "Executable binary to use for git command")
)

func main() {
var (
noColor = flag.Bool("no-color", false, "Disable color output")
config = flag.String("config", ".githound.yml", "Hound config file")
bin = flag.String("bin", "git", "Executable binary to use for git command")
)

flag.Parse()

if *noColor {
Expand Down

0 comments on commit ca20873

Please sign in to comment.