summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike JS. Choi <mkchoi212@icloud.com>2018-06-15 15:56:29 +0900
committerMike JS. Choi <mkchoi212@icloud.com>2018-06-15 16:51:21 +0900
commit1a8e1806253e9bb29fdbc113e94d1678ad6e8304 (patch)
tree00df7c470cac45f9663e4105c307c398c8f6590f
parent3b133f5f57e9435ce893f6d03d5d8de22330993e (diff)
Parse -version flag
-rw-r--r--options.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/options.go b/options.go
index 6c3339e..6a7f78e 100644
--- a/options.go
+++ b/options.go
@@ -8,8 +8,7 @@ import (
const (
version = "2.0"
- help = `
-Usage:
+ help = `Usage:
fac
@@ -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
`
)
@@ -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)
}
}
+