package app import "github.com/urfave/cli/v2" var ( apiFlags = []cli.Flag{ // http flags &httpEnabledFlag, &httpListenAddrFlag, &httpPortFlag, } // httpEnabledFlag enable rpc server. httpEnabledFlag = cli.BoolFlag{ Name: "http", Usage: "Enable the HTTP-RPC server", Value: false, } // httpListenAddrFlag set the http address. httpListenAddrFlag = cli.StringFlag{ Name: "http.addr", Usage: "HTTP-RPC server listening interface", Value: "localhost", } // httpPortFlag set http.port. httpPortFlag = cli.IntFlag{ Name: "http.port", Usage: "HTTP-RPC server listening port", Value: 8390, } )