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:
Warner Losh 2008-09-03 07:03:38 +00:00
parent 7589f19e81
commit 4855d1bfd1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=182707

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;