fix related to spf13/hugo#1852 - build is going to fail

pull/48/head
Henrique Dias 2016-02-13 12:52:22 +00:00
parent c8c2d4e9b5
commit 6c0abf9fd6
1 changed files with 1 additions and 0 deletions

View File

@ -165,6 +165,7 @@ func ParseComponents(r *http.Request) []string {
// Run is used to run the static website generator
func Run(c *config.Config) {
commands.MainSite = nil
c.Args = append([]string{"--source", c.Path}, c.Args...)
commands.HugoCmd.ParseFlags(c.Args)
if err := commands.HugoCmd.RunE(nil, nil); err != nil {