Browse Source

Rename -h parameter (help) to -H.

The short -h parameter will be used to set device host name.
Georgi Chorbadzhiyski 9 years ago
parent
commit
f2b76ec642
3 changed files with 6 additions and 5 deletions
  1. 1
    0
      ChangeLog
  2. 1
    1
      README
  3. 4
    4
      videohubctrl.c

+ 1
- 0
ChangeLog View File

@@ -1,6 +1,7 @@
1 1
 |-----------------------------------------------------------------------|
2 2
 xxxx-xx-xx : Version next
3 3
  * Rename -v / --verbose parameter to -d / --debug.
4
+ * Rename -h parameter (help) to -H.
4 5
 
5 6
 2014-11-27 : Version 0.2
6 7
  * Fix port routing. Previously it was reversed and incorrect.

+ 1
- 1
README View File

@@ -83,7 +83,7 @@ Main options:
83 83
 Misc options:
84 84
  -d --debug                 | Increase logging verbosity.
85 85
  -q --quiet                 | Suppress warnings.
86
- -h --help                  | Show help screen.
86
+ -H --help                  | Show help screen.
87 87
  -V --version               | Show program version.
88 88
 
89 89
 Commands:

+ 4
- 4
videohubctrl.c View File

@@ -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

Loading…
Cancel
Save