| 31 | }; |
| 32 | |
| 33 | void bark_print_usage(char **argv, const bark_params ¶ms, const server_params &server_params) { |
| 34 | fprintf(stderr, "usage: %s [options]\n", argv[0]); |
| 35 | fprintf(stderr, "\n"); |
| 36 | fprintf(stderr, "options:\n"); |
| 37 | fprintf(stderr, " -h, --help show this help message and exit\n"); |
| 38 | fprintf(stderr, " -m MODEL, --model MODEL path to model\n"); |
| 39 | fprintf(stderr, " -t N, --threads N number of threads to use during computation (default: %d)\n", params.n_threads); |
| 40 | fprintf(stderr, " -p PORT, --port PORT port number\n"); |
| 41 | fprintf(stderr, " -a IP, --adress IP ip adress\n"); |
| 42 | fprintf(stderr, "\n"); |
| 43 | } |
| 44 | |
| 45 | void bark_params_parse(int argc, char **argv, bark_params ¶ms, server_params &server_params) { |
| 46 | bool model_req = false; |