32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
@end
OF_APPLICATION_DELEGATE(OFDNS)
static void
help(OFStream *stream, bool full, int status)
{
[OFStdErr writeLine:
OF_LOCALIZED(@"usage",
@"Usage: %[prog] -[chst] domain1 [domain2 ...]",
@"prog", [OFApplication programName])];
if (full) {
[stream writeString: @"\n"];
[stream writeLine: OF_LOCALIZED(@"full_usage",
@"Options:\n "
|
|
<
|
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
@end
OF_APPLICATION_DELEGATE(OFDNS)
static void
help(OFStream *stream, bool full, int status)
{
[OFStdErr writeLine: OF_LOCALIZED(@"usage",
@"Usage: %[prog] -[chst] domain1 [domain2 ...]",
@"prog", [OFApplication programName])];
if (full) {
[stream writeString: @"\n"];
[stream writeLine: OF_LOCALIZED(@"full_usage",
@"Options:\n "
|
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
exception: (id)exception
{
_inFlight--;
if (exception == nil)
[OFStdOut writeFormat: @"%@\n", response];
else {
[OFStdErr writeLine: OF_LOCALIZED(
@"failed_to_resolve",
@"Failed to resolve: %[exception]",
@"exception", exception)];
_errors++;
}
if (_inFlight == 0)
[OFApplication terminateWithStatus: _errors];
|
|
<
|
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
exception: (id)exception
{
_inFlight--;
if (exception == nil)
[OFStdOut writeFormat: @"%@\n", response];
else {
[OFStdErr writeLine: OF_LOCALIZED(@"failed_to_resolve",
@"Failed to resolve: %[exception]",
@"exception", exception)];
_errors++;
}
if (_inFlight == 0)
[OFApplication terminateWithStatus: _errors];
|