aboutsummaryrefslogtreecommitdiffhomepage
path: root/main.go
diff options
context:
space:
mode:
authorspf13 <[email protected]>2013-07-11 22:04:57 -0400
committerspf13 <[email protected]>2013-07-11 22:04:57 -0400
commit75a2e6d4e808ab585c10dc330f9ab2f6c4619411 (patch)
treeb4b8b834f0f1b54b1b76580d0528206b658981b4 /main.go
parentd9b5f9cd9e2807555c428b3df40035086bafec4f (diff)
downloadhugo-75a2e6d4e808ab585c10dc330f9ab2f6c4619411.tar.gz
hugo-75a2e6d4e808ab585c10dc330f9ab2f6c4619411.zip
Now support for config files as yaml, json or toml
Diffstat (limited to 'main.go')
-rw-r--r--main.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/main.go b/main.go
index d1c3fc3b8..fe4c0e871 100644
--- a/main.go
+++ b/main.go
@@ -26,13 +26,9 @@ import (
"time"
)
-const (
- cfgFiledefault = "config.yaml"
-)
-
var (
baseUrl = flag.String("b", "", "hostname (and path) to the root eg. http://spf13.com/")
- cfgfile = flag.String("c", cfgFiledefault, "config file (default is path/config.yaml)")
+ cfgfile = flag.String("c", "", "config file (default is path/config.yaml|json|toml)")
checkMode = flag.Bool("k", false, "analyze content and provide feedback")
draft = flag.Bool("d", false, "include content marked as draft")
help = flag.Bool("h", false, "show this help")