diff options
author | Steve Manuel <nilslice@gmail.com> | 2016-11-24 10:37:54 -0800 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2016-11-24 10:37:54 -0800 |
commit | 04344fd03a609af37ec95a6c8279a45c17d5de70 (patch) | |
tree | 0129828f4a6eb5c1cfb2a02124fc4a14a22f4006 /cmd/ponzu/main.go | |
parent | 6f5893828077eb0034dca01344f3742eb5cd5fa6 (diff) |
adding initial support to generate content type from more descriptive cli args
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..88355f4 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() } |