diff options
Diffstat (limited to 'cast/standalone_receiver/main.cc')
-rw-r--r-- | cast/standalone_receiver/main.cc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/cast/standalone_receiver/main.cc b/cast/standalone_receiver/main.cc index 0c9d3c1b..4e8c321c 100644 --- a/cast/standalone_receiver/main.cc +++ b/cast/standalone_receiver/main.cc @@ -116,16 +116,15 @@ std::unique_ptr<CastAgent> StartCastAgent(TaskRunnerImpl* task_runner, } void LogUsage(const char* argv0) { - std::cerr << R"( -usage: )" << argv0 - << R"( <options> <interface> + constexpr char kTemplate[] = R"( +usage: %s <options> <interface> -options: interface Specifies the network interface to bind to. The interface is looked up from the system interface registry. Mandatory, as it must be known for publishing discovery. +options: -p, --private-key=path-to-key: Path to OpenSSL-generated private key to be used for TLS authentication. If a private key is not provided, a randomly generated one will be used for this @@ -153,7 +152,9 @@ options: -v, --verbose: Enable verbose logging. -h, --help: Show this help message. - )"; +)"; + + std::cerr << StringPrintf(kTemplate, argv0); } InterfaceInfo GetInterfaceInfoFromName(const char* name) { |