ref: 6a5e4b363a010b404691a857e5c77eee0d66a9f7
parent: d89c7ec7a2fc198b92c63a1103932dff18cb37c1
parent: 49b8ac5fbceef9e00325800d4fa64c19723b2237
author: Steve Francia <[email protected]>
date: Thu Aug 8 11:52:50 EDT 2013
Merge pull request #20 from VonC/version Make sure hugo --version prints the version and does *nothing* else.
--- a/main.go
+++ b/main.go
@@ -60,6 +60,11 @@
usage()
}
+ if *version {
+ fmt.Println("Hugo Static Site Generator v0.8")
+ return
+ }
+
config := hugolib.SetupConfig(cfgfile, source)
config.BuildDrafts = *draft
config.UglyUrls = *uglyUrls
@@ -73,10 +78,6 @@
if *destination != "" {
config.PublishDir = *destination
- }
-
- if *version {
- fmt.Println("Hugo Static Site Generator v0.8")
}
if *cpuprofile != 0 {