minor style(9) police: sort getopt options alphabetically. The

semi-logical segregation of 'b' and 'h' doesn't seem to make sense and
makes it harder to read.
This commit is contained in:
imp 2008-09-03 07:03:38 +00:00
parent ddfbb4fd97
commit cfa9a2ed0e

View File

@ -97,16 +97,24 @@ main(int argc, char **argv)
listmode = readmode = writemode = attachedmode = caps = verbose = byte = isshort = 0;
while ((c = getopt(argc, argv, "aclrwbhv")) != -1) {
while ((c = getopt(argc, argv, "abchlrwv")) != -1) {
switch(c) {
case 'a':
attachedmode = 1;
break;
case 'b':
byte = 1;
break;
case 'c':
caps = 1;
break;
case 'h':
isshort = 1;
break;
case 'l':
listmode = 1;
break;
@ -119,14 +127,6 @@ main(int argc, char **argv)
writemode = 1;
break;
case 'b':
byte = 1;
break;
case 'h':
isshort = 1;
break;
case 'v':
verbose = 1;
break;