mirror of
git://projects.qi-hardware.com/ben-blinkenlights.git
synced 2024-11-23 23:20:38 +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)
|
||||
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':
|
||||
clk_only = 1;
|
||||
break;
|
||||
@ -717,6 +709,14 @@ int main(int argc, char **argv)
|
||||
usage(*argv);
|
||||
debounce = 1;
|
||||
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':
|
||||
tmp = strtoul(optarg, &end, 0);
|
||||
if (*end)
|
||||
|
Loading…
Reference in New Issue
Block a user