diff options
author | spf13 <[email protected]> | 2013-07-08 22:27:23 -0400 |
---|---|---|
committer | spf13 <[email protected]> | 2013-07-08 22:27:23 -0400 |
commit | aee48725eb81feb62d86bdc0521387f142c9c3a0 (patch) | |
tree | fd5c84d3c28cd34abd378c9c490ce81cb11a2758 /main.go | |
parent | d2a6267ad7664be33363bbe9e0502beca8f2c56d (diff) | |
download | hugo-aee48725eb81feb62d86bdc0521387f142c9c3a0.tar.gz hugo-aee48725eb81feb62d86bdc0521387f142c9c3a0.zip |
Adding version number to command line options
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -37,6 +37,7 @@ var ( help = flag.Bool("h", false, "show this help") path = flag.String("p", "", "filesystem path to read files relative from") verbose = flag.Bool("v", false, "verbose output") + version = flag.Bool("version", false, "which version of hugo") cpuprofile = flag.Int("cpuprofile", 0, "Number of times to create the site and profile it") watchMode = flag.Bool("w", false, "watch filesystem for changes and recreate as needed") server = flag.Bool("s", false, "run a (very) simple web server") @@ -65,6 +66,10 @@ func main() { config.BaseUrl = *baseUrl } + if *version { + fmt.Println("Hugo Static Site Generator v0.8") + } + if *cpuprofile != 0 { f, err := os.Create("/tmp/hugo-cpuprofile") |