|
|
@ -57,6 +57,11 @@ DEFINE_string(proto_path, ".", "Path to look for the proto file."); |
|
|
|
DEFINE_string(protofiles, "", "Name of the proto file."); |
|
|
|
DEFINE_string(protofiles, "", "Name of the proto file."); |
|
|
|
DEFINE_bool(binary_input, false, "Input in binary format"); |
|
|
|
DEFINE_bool(binary_input, false, "Input in binary format"); |
|
|
|
DEFINE_bool(binary_output, false, "Output in binary format"); |
|
|
|
DEFINE_bool(binary_output, false, "Output in binary format"); |
|
|
|
|
|
|
|
DEFINE_string( |
|
|
|
|
|
|
|
default_service_config, "", |
|
|
|
|
|
|
|
"Default service config to use on the channel, if non-empty. Note " |
|
|
|
|
|
|
|
"that this will be ignored if the name resolver returns a service " |
|
|
|
|
|
|
|
"config."); |
|
|
|
DEFINE_bool(json_input, false, "Input in json format"); |
|
|
|
DEFINE_bool(json_input, false, "Input in json format"); |
|
|
|
DEFINE_bool(json_output, false, "Output in json format"); |
|
|
|
DEFINE_bool(json_output, false, "Output in json format"); |
|
|
|
DEFINE_string(infile, "", "Input file (default is stdin)"); |
|
|
|
DEFINE_string(infile, "", "Input file (default is stdin)"); |
|
|
@ -217,6 +222,10 @@ std::shared_ptr<grpc::Channel> CreateCliChannel( |
|
|
|
if (!cred.GetSslTargetNameOverride().empty()) { |
|
|
|
if (!cred.GetSslTargetNameOverride().empty()) { |
|
|
|
args.SetSslTargetNameOverride(cred.GetSslTargetNameOverride()); |
|
|
|
args.SetSslTargetNameOverride(cred.GetSslTargetNameOverride()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (!FLAGS_default_service_config.empty()) { |
|
|
|
|
|
|
|
args.SetString(GRPC_ARG_SERVICE_CONFIG, |
|
|
|
|
|
|
|
FLAGS_default_service_config.c_str()); |
|
|
|
|
|
|
|
} |
|
|
|
return ::grpc::CreateCustomChannel(server_address, cred.GetCredentials(), |
|
|
|
return ::grpc::CreateCustomChannel(server_address, cred.GetCredentials(), |
|
|
|
args); |
|
|
|
args); |
|
|
|
} |
|
|
|
} |
|
|
|