From 1a8e1806253e9bb29fdbc113e94d1678ad6e8304 Mon Sep 17 00:00:00 2001 From: "Mike JS. Choi" Date: Fri, 15 Jun 2018 15:56:29 +0900 Subject: [PATCH] Parse -version flag --- options.go | 8 ++++---- 1 file 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) } } +