diff options
author | Steve <nilslice@gmail.com> | 2016-11-29 12:03:26 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-29 12:03:26 -0800 |
commit | d11d86d73aebc2fc95eedebb166c58962762db2d (patch) | |
tree | 56e99f446ac5343297e9ff72f667930ec89948e9 /cmd/ponzu/main.go | |
parent | f252472047f86d1bdf956dc59b89541ea0260d68 (diff) | |
parent | c50ae920c84b00eea7e7a896bff5546d1e013c16 (diff) |
Merge pull request #18 from bosssauce/ponzu-dev
[tooling] Add Rails-like content generator for Content Types
Diffstat (limited to 'cmd/ponzu/main.go')
-rw-r--r-- | cmd/ponzu/main.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cmd/ponzu/main.go b/cmd/ponzu/main.go index 234d3b6..2a60507 100644 --- a/cmd/ponzu/main.go +++ b/cmd/ponzu/main.go @@ -120,11 +120,12 @@ func main() { os.Exit(0) } - err := generateContentType(args[1], "") + err := generateContentType(args[1:]) if err != nil { fmt.Println(err) os.Exit(1) } + case "build": err := buildPonzuServer(args) if err != nil { @@ -197,8 +198,10 @@ func main() { } log.Fatal(http.ListenAndServe(fmt.Sprintf(":%d", port), nil)) + case "": flag.PrintDefaults() + default: flag.PrintDefaults() } |