diff options
author | Mike JS. Choi <mkchoi212@icloud.com> | 2018-06-15 15:56:29 +0900 |
---|---|---|
committer | Mike JS. Choi <mkchoi212@icloud.com> | 2018-06-15 16:51:21 +0900 |
commit | 1a8e1806253e9bb29fdbc113e94d1678ad6e8304 (patch) | |
tree | 00df7c470cac45f9663e4105c307c398c8f6590f | |
parent | 3b133f5f57e9435ce893f6d03d5d8de22330993e (diff) |
Parse -version flag
-rw-r--r-- | options.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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) } } + |