mirror of
git://projects.qi-hardware.com/ben-blinkenlights.git
synced 2024-11-04 22:53:08 +02:00
ubb-patgen/ubb-patgen.c (main): sort options alphabetically in "switch" statement
This commit is contained in:
parent
2161341267
commit
6d749fafb8
@ -695,14 +695,6 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
while ((c = getopt(argc, argv, "cCd:f:i:m:pqt:w:")) != EOF)
|
while ((c = getopt(argc, argv, "cCd:f:i:m:pqt:w:")) != EOF)
|
||||||
switch (c) {
|
switch (c) {
|
||||||
case 'f':
|
|
||||||
if (!frequency(optarg, &bus_hz, &bus_rel))
|
|
||||||
usage(*argv);
|
|
||||||
break;
|
|
||||||
case 'i':
|
|
||||||
if (!interval(optarg, &bus_hz, &bus_rel))
|
|
||||||
usage(*argv);
|
|
||||||
break;
|
|
||||||
case 'c':
|
case 'c':
|
||||||
clk_only = 1;
|
clk_only = 1;
|
||||||
break;
|
break;
|
||||||
@ -717,6 +709,14 @@ int main(int argc, char **argv)
|
|||||||
usage(*argv);
|
usage(*argv);
|
||||||
debounce = 1;
|
debounce = 1;
|
||||||
break;
|
break;
|
||||||
|
case 'f':
|
||||||
|
if (!frequency(optarg, &bus_hz, &bus_rel))
|
||||||
|
usage(*argv);
|
||||||
|
break;
|
||||||
|
case 'i':
|
||||||
|
if (!interval(optarg, &bus_hz, &bus_rel))
|
||||||
|
usage(*argv);
|
||||||
|
break;
|
||||||
case 'm':
|
case 'm':
|
||||||
tmp = strtoul(optarg, &end, 0);
|
tmp = strtoul(optarg, &end, 0);
|
||||||
if (*end)
|
if (*end)
|
||||||
|
Loading…
Reference in New Issue
Block a user