| 178 | }; |
| 179 | |
| 180 | static void print_usage(int /*argc*/, char ** argv, rpc_server_params params) { |
| 181 | fprintf(stderr, "Usage: %s [options]\n\n", argv[0]); |
| 182 | fprintf(stderr, "options:\n"); |
| 183 | fprintf(stderr, " -h, --help show this help message and exit\n"); |
| 184 | fprintf(stderr, " -t, --threads N number of threads for the CPU device (default: %d)\n", params.n_threads); |
| 185 | fprintf(stderr, " -d, --device <dev1,dev2,...> comma-separated list of devices\n"); |
| 186 | fprintf(stderr, " -H, --host HOST host to bind to (default: %s)\n", params.host.c_str()); |
| 187 | fprintf(stderr, " -p, --port PORT port to bind to (default: %d)\n", params.port); |
| 188 | fprintf(stderr, " -c, --cache enable local file cache\n"); |
| 189 | fprintf(stderr, "\n"); |
| 190 | } |
| 191 | |
| 192 | static bool rpc_server_params_parse(int argc, char ** argv, rpc_server_params & params) { |
| 193 | std::string arg; |
no outgoing calls
no test coverage detected