neo-go/cli/main.go
Ekaterina Pavlova b32e568d21 cli: don't panic when handling error
Close #2886

Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
2024-07-12 11:58:12 +03:00

17 lines
207 B
Go

package main
import (
"fmt"
"os"
"github.com/nspcc-dev/neo-go/cli/app"
)
func main() {
ctl := app.New()
if err := ctl.Run(os.Args); err != nil {
fmt.Fprintln(ctl.ErrWriter, err)
os.Exit(1)
}
}