45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
-
+
-
+
-
+
-
+
|
{ '\0', nil, 0, NULL, NULL } };
OFOptionsParser *optionsParser =
[OFOptionsParser parserWithOptions:options];
OFUnichar option;
while ((option = [optionsParser nextOption]) != '\0') {
switch (option) {
case 'w':
_width = (int)optionsParser.argument.longLongValue;
_width = optionsParser.argument.intValue;
break;
case 'h':
_height = (int)optionsParser.argument.longLongValue;
_height = optionsParser.argument.intValue;
break;
case 'u':
uprate = (int)optionsParser.argument.longLongValue;
uprate = optionsParser.argument.intValue;
break;
case 'c':
maxcl = (int)optionsParser.argument.longLongValue;
maxcl = optionsParser.argument.intValue;
break;
case ':':
case '=':
case '?':
conoutf(@"unknown commandline option");
[OFApplication terminateWithStatus:1];
}
|