diff options
Diffstat (limited to 'cmd/planr/main.go')
-rw-r--r-- | cmd/planr/main.go | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/cmd/planr/main.go b/cmd/planr/main.go index c65edb1..54c3d60 100644 --- a/cmd/planr/main.go +++ b/cmd/planr/main.go @@ -1,14 +1,16 @@ package main import ( - "os" - "io" "fmt" + "io" + "log" + "os" + "golang.flu0r1ne.net/planr/cmd/planr/sub" ) const ( - VERSION = "0.0.1" + VERSION = "0.0.2" ) func printUsage(w io.Writer) { @@ -26,6 +28,9 @@ func dieUsage() { func main() { + log.SetFlags(log.Llongfile | log.Lmsgprefix) + log.SetPrefix("planr: ") + if len(os.Args) < 2 { dieUsage() } @@ -38,7 +43,7 @@ func main() { fmt.Printf("%s\n", VERSION) case "build": sub.Build(subargs) - case "evaluate": + case "evaluate","eval": sub.Evaluate(subargs) case "help", "-h", "-help", "--help": printUsage(os.Stdout) |