Skip to content

Commit

Permalink
Parse -version flag
Browse files Browse the repository at this point in the history
  • Loading branch information
mkchoi212 committed Jun 15, 2018
1 parent 3b133f5 commit 1a8e180
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions options.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ import (

const (
version = "2.0"
help = `
Usage:
help = `Usage:
fac
Expand All @@ -33,7 +32,7 @@ Customizable variables:
quit ...
help display help in side bar
Following variables may be defined in your $HOME/.fac.yml to customize behavior
Define above variables in your $HOME/.fac.yml to customize behavior
`
)
Expand All @@ -49,7 +48,8 @@ func ParseFlags() {
flag.Parse()

if *showVersion {
fmt.Printf("fac version %s\n", version)
fmt.Printf("fac %s\n", version)
os.Exit(0)
}
}

0 comments on commit 1a8e180

Please sign in to comment.