parse_option mode_init required_argument NULL mode_init specify the mo

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
1.
parse_option ("mode_init", required_argument, NULL, 'z', "<mode_init> specify the mode of operation of the engine [photo, audio, video]");
---------------------
2.
for (i = 0; i < MODE_MAX; i++) {
if (strstr (mode_init, mode_names[i]) != NULL) {
mode = i;
}
}
fprintf (stderr, " * Mode Init = %s | Mode Load: %d - [%s] \n", mode_init, mode, mode_names[mode]);