summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2017-01-16 10:34:51 -0800
committerSteve Manuel <nilslice@gmail.com>2017-01-16 10:34:51 -0800
commit89a43c6734a4375b4c6d5b76034020505965baac (patch)
tree25dbacb918ff40f19db43236946f13584d46f2c7
parent920a30b1ee400da06530e39997c6545c260736fe (diff)
removing fmt debug and changing index of args to match generator
-rw-r--r--cmd/ponzu/main.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/cmd/ponzu/main.go b/cmd/ponzu/main.go
index d2ec4d8..e9c4354 100644
--- a/cmd/ponzu/main.go
+++ b/cmd/ponzu/main.go
@@ -97,14 +97,16 @@ func main() {
}
// check what we are asked to generate
- switch args[2] {
+ switch args[1] {
case "content", "c":
- fmt.Println(args, "|", args[2])
err := generateContentType(args[2:])
if err != nil {
fmt.Println(err)
os.Exit(1)
}
+ default:
+ msg := fmt.Sprintf("Generator '%s' is not implemented.", args[1])
+ fmt.Println(msg)
}
case "build":