neoneo-go/cli/main.go
Pawan Rawal e93dfe8062 Better error messages (#24)
* Print proper error messages while using contract subcommands and also exit with status code 1.

* Make -in a flag, also remove dot from avm extension.

* Work on feedback by Anthony.

* Update README and VERSION
2018-02-24 10:10:45 +01:00

22 lines
358 B
Go

package main
import (
"os"
"github.com/CityOfZion/neo-go/cli/server"
"github.com/CityOfZion/neo-go/cli/smartcontract"
"github.com/urfave/cli"
)
func main() {
ctl := cli.NewApp()
ctl.Name = "neo-go"
ctl.Usage = "Official Go client for Neo"
ctl.Commands = []cli.Command{
server.NewCommand(),
smartcontract.NewCommand(),
}
ctl.Run(os.Args)
}