aboutsummaryrefslogtreecommitdiffhomepage
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/main.go b/main.go
index 692db431d..8b91bee86 100644
--- a/main.go
+++ b/main.go
@@ -60,6 +60,11 @@ func main() {
usage()
}
+ if *version {
+ fmt.Println("Hugo Static Site Generator v0.8")
+ return
+ }
+
config := hugolib.SetupConfig(cfgfile, source)
config.BuildDrafts = *draft
config.UglyUrls = *uglyUrls
@@ -75,10 +80,6 @@ func main() {
config.PublishDir = *destination
}
- if *version {
- fmt.Println("Hugo Static Site Generator v0.8")
- }
-
if *cpuprofile != 0 {
f, err := os.Create("/tmp/hugo-cpuprofile")