Sfoglia il codice sorgente

Fixed printed help

Fredrik Svantesson 6 anni fa
parent
commit
8307431ac7
1 ha cambiato i file con 7 aggiunte e 7 eliminazioni
  1. 7
    7
      src/light.c

+ 7
- 7
src/light.c Vedi File

@@ -129,18 +129,18 @@ static bool _light_percent_to_raw(light_device_target_t *target, double inpercen
129 129
 static void _light_print_usage()
130 130
 {
131 131
     printf("Usage:\n"
132
-        "  light [OPTIONS] <COMMAND> [VALUE]\n"
132
+        "  light [OPTIONS] [VALUE]\n"
133 133
         "\n"
134 134
         "Commands:\n"
135 135
         "  -H, -h      Show this help and exit\n"
136 136
         "  -V          Show program version and exit\n"
137 137
         "  -L          List available devices\n"
138 138
         
139
-        "  -A <value>  Increase brightness by value\n"
140
-        "  -U <value>  Decrease brightness by value\n" 
141
-        "  -S <value>  Set brightness to value\n"
139
+        "  -A          Increase brightness by value\n"
140
+        "  -U          Decrease brightness by value\n" 
141
+        "  -S          Set brightness to value\n"
142 142
         "  -G          Get brightness\n"
143
-        "  -N <value>  Set minimum brightness to value\n"
143
+        "  -N          Set minimum brightness to value\n"
144 144
         "  -P          Get minimum brightness\n"
145 145
         "  -I          Save the current brightness\n"
146 146
         "  -O          Restore the previously saved brightness\n"
@@ -149,8 +149,8 @@ static void _light_print_usage()
149 149
         "\n"
150 150
         "Options:\n"
151 151
         "  -r          Interpret input and output values in raw mode\n"
152
-        "  -s <value>  Specify device target path to use, use -L to list available\n"
153
-        "  -v <value>  Specify the verbosity level (default 0)\n"
152
+        "  -s          Specify device target path to use, use -L to list available\n"
153
+        "  -v          Specify the verbosity level (default 0)\n"
154 154
         "                 0: Values only\n"
155 155
         "                 1: Values, Errors.\n"
156 156
         "                 2: Values, Errors, Warnings.\n"