Browse Source

Reorder parameters in usage().

Georgi Chorbadzhiyski 9 years ago
parent
commit
8436f9c2ed
2 changed files with 22 additions and 14 deletions
  1. 16
    8
      README
  2. 6
    6
      videohubctrl.c

+ 16
- 8
README View File

@@ -39,24 +39,26 @@ Command line parameters
39 39
 videohubctrl is controlled using command line parameters. Here is a list
40 40
 of supported command line parameters:
41 41
 
42
+videohubctrl Version: 0.3 Git: 0.3-dirty
43
+
42 44
  Usage: videohubctrl --host <host> [..commands..]
43 45
 
44 46
 Main options:
45 47
  -h --host <hostname>       | Set device hostname.
46 48
  -p --port <port_number>    | Set device port (default: 9990).
47 49
 
48
-Misc options:
49
- -d --debug                 | Increase logging verbosity.
50
- -q --quiet                 | Suppress warnings.
51
- -H --help                  | Show help screen.
52
- -V --version               | Show program version.
53
-
54 50
 Commands:
55
- -i --info                  | Show device info (default command).
56
- -m --monitor               | Show real time monitor for config changes.
51
+ -i --info                  | Show full device info (default command).
52
+                            . This command is shows the equivallent of
53
+                            .  running all --list-XXX commands.
54
+ -m --monitor               | Display real-time config changes monitor.
57 55
  -b --backup                | Show the command line that will restore
58 56
                             . the device to the current configuration.
59 57
 
58
+ --list-device              | Display device info.
59
+ --list-vinputs             | List device video inputs.
60
+ --list-voutputs            | List device video outputs.
61
+
60 62
 Video input/output configuration:
61 63
  --vi-name <in_X> <name>    | Set video input port X name.
62 64
  --vo-name <out_X> <name>   | Set video output port X name.
@@ -68,6 +70,12 @@ Video input/output configuration:
68 70
 
69 71
   NOTE: For <in_X/out_X/in_Y> you may use port number or port name.
70 72
 
73
+Misc options:
74
+ -d --debug                 | Increase logging verbosity.
75
+ -q --quiet                 | Suppress warnings.
76
+ -H --help                  | Show help screen.
77
+ -V --version               | Show program version.
78
+
71 79
 
72 80
 Environment variables
73 81
 =====================

+ 6
- 6
videohubctrl.c View File

@@ -72,12 +72,6 @@ static void show_help(struct videohub_data *data) {
72 72
 	printf(" -h --host <hostname>       | Set device hostname.\n");
73 73
 	printf(" -p --port <port_number>    | Set device port (default: 9990).\n");
74 74
 	printf("\n");
75
-	printf("Misc options:\n");
76
-	printf(" -d --debug                 | Increase logging verbosity.\n");
77
-	printf(" -q --quiet                 | Suppress warnings.\n");
78
-	printf(" -H --help                  | Show help screen.\n");
79
-	printf(" -V --version               | Show program version.\n");
80
-	printf("\n");
81 75
 	printf("Commands:\n");
82 76
 	printf(" -i --info                  | Show full device info (default command).\n");
83 77
 	printf("                            . This command is shows the equivallent of\n");
@@ -101,6 +95,12 @@ static void show_help(struct videohub_data *data) {
101 95
 	printf("\n");
102 96
 	printf("  NOTE: For <in_X/out_X/in_Y> you may use port number or port name.\n");
103 97
 	printf("\n");
98
+	printf("Misc options:\n");
99
+	printf(" -d --debug                 | Increase logging verbosity.\n");
100
+	printf(" -q --quiet                 | Suppress warnings.\n");
101
+	printf(" -H --help                  | Show help screen.\n");
102
+	printf(" -V --version               | Show program version.\n");
103
+	printf("\n");
104 104
 }
105 105
 
106 106
 static int num_parsed_cmds = 0;

Loading…
Cancel
Save