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

+ 1
- 1
README View File

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

+ 4
- 4
videohubctrl.c View File

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

Loading…
Cancel
Save