|
diff --git a/main.c b/main.c
|
| ... |
| 21 |
} |
21 |
} |
| 22 |
|
22 |
|
| 23 |
int main(int argc, char *argv[]) { |
23 |
int main(int argc, char *argv[]) { |
| 24 |
const char short_options[] = "lp:s:hv:"; |
24 |
const char short_options[] = "lp:s:hv"; |
| 25 |
const struct option long_options[] = { |
25 |
const struct option long_options[] = { |
| 26 |
{ "list", 0, NULL, 'l' }, |
26 |
{ "list", 0, NULL, 'l' }, |
| 27 |
{ "port", 1, NULL, 'p' }, |
27 |
{ "port", 1, NULL, 'p' }, |
| ... |
| 63 |
} |
63 |
} |
| 64 |
|
64 |
|
| 65 |
if (port_name == NULL || soundfont_file == NULL) { |
65 |
if (port_name == NULL || soundfont_file == NULL) { |
| 66 |
fprintf(stdout, "Missing options. Check help.\n\n"); |
66 |
fprintf(stdout, "Missing options. Check help.\n"); |
| 67 |
fprintf(stdout, "Port and soundfile are required fields.\n\n"); |
67 |
fprintf(stdout, "Port and soundfile are required fields.\n"); |
| 68 |
return 1; |
68 |
return 1; |
| 69 |
} |
69 |
} |
| 70 |
|
70 |
|
| ... |