|
@@ -31,14 +31,14 @@ static int show_monitor = 0;
|
31
|
31
|
|
32
|
32
|
static const char *program_id = PROGRAM_NAME " Version: " VERSION " Git: " GIT_VER;
|
33
|
33
|
|
34
|
|
-static const char short_options[] = "s:p:qdhVim";
|
|
34
|
+static const char short_options[] = "s:p:qdHVim";
|
35
|
35
|
|
36
|
36
|
static const struct option long_options[] = {
|
37
|
37
|
{ "host", required_argument, NULL, 's' },
|
38
|
38
|
{ "port", required_argument, NULL, 'p' },
|
39
|
39
|
{ "quiet", no_argument, NULL, 'q' },
|
40
|
40
|
{ "debug", no_argument, NULL, 'd' },
|
41
|
|
- { "help", no_argument, NULL, 'h' },
|
|
41
|
+ { "help", no_argument, NULL, 'H' },
|
42
|
42
|
{ "version", no_argument, NULL, 'V' },
|
43
|
43
|
{ "info", no_argument, NULL, 'i' },
|
44
|
44
|
{ "monitor", no_argument, NULL, 'm' },
|
|
@@ -56,7 +56,7 @@ static void show_help(struct videohub_data *data) {
|
56
|
56
|
printf("Misc options:\n");
|
57
|
57
|
printf(" -d --debug | Increase logging verbosity.\n");
|
58
|
58
|
printf(" -q --quiet | Suppress warnings.\n");
|
59
|
|
- printf(" -h --help | Show help screen.\n");
|
|
59
|
+ printf(" -H --help | Show help screen.\n");
|
60
|
60
|
printf(" -V --version | Show program version.\n");
|
61
|
61
|
printf("\n");
|
62
|
62
|
printf("Commands:\n");
|
|
@@ -91,7 +91,7 @@ static void parse_options(struct videohub_data *data, int argc, char **argv) {
|
91
|
91
|
case 'm': // --monitor
|
92
|
92
|
show_monitor = 1;
|
93
|
93
|
break;
|
94
|
|
- case 'h': // --help
|
|
94
|
+ case 'H': // --help
|
95
|
95
|
show_help(data);
|
96
|
96
|
exit(EXIT_SUCCESS);
|
97
|
97
|
case 'V': // --version
|