INNER CODE UNIT · Go
bindFlags
ktr0731/evans · app/commands.go:140
func bindFlags(f *pflag.FlagSet, flags *flags, w io.Writer) {
initFlagSet(f, w)
f.BoolVar(&flags.mode.repl, "repl", false, "launch Evans as REPL mode")
f.BoolVar(&flags.mode.cli, "cli", false, "start as CLI mode")
f.StringVar(&flags.cli.call, "call", "", "call specified RPC by CLI mode")
f.StringVarP(&flags.cli.file, "file", "f", "", "a script file that will be executed by (used only CLI mode)")
f.BoolVarP(&flags.repl.silent, "silent", "s", false, "hide redundant output")
f.StringVar(&flags.common.pkg, "package", "", "default package")
f.StringVar(&flags.common.service, "service", "", "default service")
f.StringSliceVar(&flags.common.path, "path", nil, "comma-separated proto file paths")
f.StringSliceVar(&flags.common.proto, "proto", nil, "comma-separated proto file names")
f.StringVar(&flags.common.host, "host", "", "gRPC server host")
f.StringVarP(&flags.common.port, "port", "p", "50051", "gRPC server port")
f.Var(